From 7931929a42dcbde977f85a992df5124e97ed27d0 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Mon, 18 Feb 2013 10:49:03 +0000 Subject: [PATCH] Fix compile of mg_strcasestr() under windows --- mongoose.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mongoose.c b/mongoose.c index 13b5a48f..7399c5ca 100644 --- a/mongoose.c +++ b/mongoose.c @@ -694,12 +694,12 @@ static char * mg_strdup(const char *str) { return mg_strndup(str, strlen(str)); } -static const char *mg_strcasestr(const char *big, const char *small) { - int i, big_len = strlen(big), small_len = strlen(small); +static const char *mg_strcasestr(const char *big_str, const char *small_str) { + int i, big_len = strlen(big_str), small_len = strlen(small_str); for (i = 0; i <= big_len - small_len; i++) { - if (mg_strncasecmp(big + i, small, small_len) == 0) { - return big + i; + if (mg_strncasecmp(big_str + i, small_str, small_len) == 0) { + return big_str + i; } }