From c1e2780db87f71d40a97b4c3b111aa678e4e555d Mon Sep 17 00:00:00 2001 From: Philippe Vachon Date: Sun, 18 Jan 2009 20:11:15 -0500 Subject: [PATCH] Fixed const-ness issue in string.c. --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.c b/string.c index 6d5bccc..0e4fb86 100644 --- a/string.c +++ b/string.c @@ -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;