diff options
Diffstat (limited to 'libc/string')
-rw-r--r-- | libc/string/strsep.c | 2 | ||||
-rw-r--r-- | libc/string/strstr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/string/strsep.c b/libc/string/strsep.c index 21aa1bb58..703fe5c69 100644 --- a/libc/string/strsep.c +++ b/libc/string/strsep.c @@ -27,7 +27,7 @@ char *delim; if (!(p = *pp)) return 0; - if (q = strpbrk (p, delim)) + if ((q = strpbrk (p, delim))) { *pp = q + 1; *q = '\0'; diff --git a/libc/string/strstr.c b/libc/string/strstr.c index aafcaf967..3c853ac52 100644 --- a/libc/string/strstr.c +++ b/libc/string/strstr.c @@ -17,7 +17,7 @@ char *s1; char *s2; if( l==0 ) return p; - while (p = strchr(p, *s2)) + while ((p = strchr(p, *s2))) { if( memcmp(p, s2, l) == 0 ) return p; |