Commit 92e51459 by James E Wilson Committed by Jim Wilson

Fix latent bug in strstr.c testcase.

* gcc.c-torture/execute/builtins/lib/strstr.c (strstr): Correct exit
test for successful match.

From-SVN: r94204
parent 65cfff70
2005-01-24 James E Wilson <wilson@specifixinc.com>
* gcc.c-torture/execute/builtins/lib/strstr.c (strstr): Correct exit
test for successful match.
2005-01-25 Alexander Malmberg <alexander@malmberg.org>
PR objc/18408
......
......@@ -20,7 +20,7 @@ strstr(const char *s1, const char *s2)
break;
p++, q++;
}
if (*p == *q && *p == 0)
if (*q == 0)
return (char *)s1;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment