[Midnightbsd-cvs] src [7590] stable/0.8/usr.bin/mail/util.c: fix clang warning

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat May 28 14:45:14 EDT 2016


Revision: 7590
          http://svnweb.midnightbsd.org/src/?rev=7590
Author:   laffer1
Date:     2016-05-28 14:45:14 -0400 (Sat, 28 May 2016)
Log Message:
-----------
fix clang warning

Modified Paths:
--------------
    stable/0.8/usr.bin/mail/util.c

Modified: stable/0.8/usr.bin/mail/util.c
===================================================================
--- stable/0.8/usr.bin/mail/util.c	2016-05-28 18:44:06 UTC (rev 7589)
+++ stable/0.8/usr.bin/mail/util.c	2016-05-28 18:45:14 UTC (rev 7590)
@@ -236,8 +236,8 @@
 {
 
 	strlcpy(dest, src, dsize);
-	while (*dest)
-		*dest++ = tolower((unsigned char)*dest);
+	for (; *dest; dest++)
+		*dest = tolower((unsigned char)*dest);
 }
 
 /*



More information about the Midnightbsd-cvs mailing list