diff --git a/goodbyedpi.c b/goodbyedpi.c index 1c9a07b7..9f8775a2 100644 --- a/goodbyedpi.c +++ b/goodbyedpi.c @@ -29,13 +29,13 @@ static const char *http_host_find = "\r\nHost: "; static const char *http_host_replace = "\r\nhoSt: "; static const char *location_http = "\r\nLocation: http://"; -static char* dumb_memmem(char* haystack, int hlen, char* needle, int nlen) { +static char* dumb_memmem(const char* haystack, int hlen, const char* needle, int nlen) { // naive implementation if (nlen > hlen) return 0; int i; for (i=0; i