diff options
Diffstat (limited to 'ext/standard/php_string.h')
| -rw-r--r-- | ext/standard/php_string.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index e351cb6daf..f4a218686f 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -122,7 +122,7 @@ php_memnstr(char *haystack, char *needle, int needle_len, char *end)  	char *s = NULL;  	for(; p <= end - needle_len &&  -			(s = memchr(p, *needle, end - p - needle_len + 1)); p = s + 1) { +			(s = (char*)memchr(p, *needle, end - p - needle_len + 1)); p = s + 1) {  		if(memcmp(s, needle, needle_len) == 0)  			return s;  	} | 
