diff options
Diffstat (limited to 'lib/libc/string')
-rw-r--r-- | lib/libc/string/memset.c | 2 | ||||
-rw-r--r-- | lib/libc/string/strcat.c | 2 | ||||
-rw-r--r-- | lib/libc/string/strcpy.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/string/memset.c b/lib/libc/string/memset.c index 55cca11..afe5f96 100644 --- a/lib/libc/string/memset.c +++ b/lib/libc/string/memset.c @@ -68,7 +68,9 @@ memset(dst0, c0, length) #endif { register size_t t; +#ifndef BZERO register u_int c; +#endif register u_char *dst; dst = dst0; diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c index 3436967..95dcd1d 100644 --- a/lib/libc/string/strcat.c +++ b/lib/libc/string/strcat.c @@ -45,6 +45,6 @@ strcat(s, append) char *save = s; for (; *s; ++s); - while (*s++ = *append++); + while ((*s++ = *append++)); return(save); } diff --git a/lib/libc/string/strcpy.c b/lib/libc/string/strcpy.c index d1791dd..c9b44b1 100644 --- a/lib/libc/string/strcpy.c +++ b/lib/libc/string/strcpy.c @@ -45,6 +45,6 @@ strcpy(to, from) { char *save = to; - for (; *to = *from; ++from, ++to); + for (; (*to = *from); ++from, ++to); return(save); } |