fix strstr. Seems the function never worked before, except the searched

substring is at the end.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3978 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-03-06 17:43:20 +00:00 committed by Stefan Reinauer
parent 8dcd50b155
commit 0d348f919c
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ char *strstr(const char *h, const char *n)
int i;
for (i = 0; i <= hn - nn; i++)
if (!strcmp(&h[i], n))
if (!memcmp(&h[i], n, nn))
return (char *)&h[i];
return NULL;