projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use vfp mnemonics instead of p10 coprocessor ones in armhf fenv asm
[musl]
/
src
/
string
/
strstr.c
diff --git
a/src/string/strstr.c
b/src/string/strstr.c
index
915c0a2
..
cd06912
100644
(file)
--- a/
src/string/strstr.c
+++ b/
src/string/strstr.c
@@
-130,7
+130,7
@@
static char *twoway_strstr(const unsigned char *h, const unsigned char *n)
}
/* Compare left half */
for (k=ms+1; k>mem && n[k-1] == h[k-1]; k--);
- if (k
=
= mem) return (char *)h;
+ if (k
<
= mem) return (char *)h;
h += p;
mem = mem0;
}