summaryrefslogtreecommitdiff
path: root/libc/string/strstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/strstr.c')
-rw-r--r--libc/string/strstr.c2
1 files changed, 1 insertions, 1 deletions
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;