Fixed const-ness issue in string.c.

master
Philippe Vachon 16 years ago
parent 8e37b13a4f
commit c1e2780db8

@ -108,7 +108,7 @@ const char *strstr(const char *haystack, const char *needle)
{
int npos = 0; /* position within needle */
int nlen = strlen(needle);
char *start;
const char *start;
while (*haystack != '\0') {
if (npos == 0) start = haystack;

Loading…
Cancel
Save