[Midnightbsd-cvs] src [10511] trunk/lib/libc/string/wcslcat.c: change order
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jun 7 08:27:55 EDT 2018
Revision: 10511
http://svnweb.midnightbsd.org/src/?rev=10511
Author: laffer1
Date: 2018-06-07 08:27:54 -0400 (Thu, 07 Jun 2018)
Log Message:
-----------
change order
Modified Paths:
--------------
trunk/lib/libc/string/wcslcat.c
Modified: trunk/lib/libc/string/wcslcat.c
===================================================================
--- trunk/lib/libc/string/wcslcat.c 2018-06-07 12:25:05 UTC (rev 10510)
+++ trunk/lib/libc/string/wcslcat.c 2018-06-07 12:27:54 UTC (rev 10511)
@@ -54,7 +54,7 @@
size_t dlen;
/* Find the end of dst and adjust bytes left but don't go past end */
- while (*d != '\0' && n-- != 0)
+ while (n-- != 0 && *d != '\0')
d++;
dlen = d - dst;
n = siz - dlen;
More information about the Midnightbsd-cvs
mailing list