ossp-pkg/str/str_basic.c 1.9 -> 1.10
--- str_basic.c 2002/01/02 17:09:13 1.9
+++ str_basic.c 2002/01/31 13:34:13 1.10
@@ -144,12 +144,12 @@
/* concatenate the strings */
ds = rv;
- while ((*ds++ = *s++) != NUL)
- /*nop*/;
- while ((cp = va_arg(ap, char *)) != NULL)
- while ((*ds++ = *cp++) != NUL)
- /*nop*/;
- *ds = NUL;
+ while ((*ds = *s++) != NUL)
+ ds++;
+ while ((cp = va_arg(ap, char *)) != NULL) {
+ while ((*ds = *cp++) != NUL)
+ ds++;
+ }
/* return target string */
return rv;
|
|