From: Rasmus Lerdorf Date: Thu, 24 May 2007 20:56:20 +0000 (+0000) Subject: MFB 5_2 X-Git-Tag: RELEASE_1_4~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f5563da38fc6cb2fe5345f5fb5709c8b49af871;p=php MFB 5_2 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index f3f2210cf2..f06c1be578 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4734,7 +4734,7 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_ php_charmask((unsigned char*)what, wlength, flags TSRMLS_CC); - for (source = str, end = source + length, target = new_str; (c = *source) || (source < end); source++) { + for (source = str, end = source + length, target = new_str; source < end; source++) { if (flags[(unsigned char)c]) { if ((unsigned char) c < 32 || (unsigned char) c > 126) { *target++ = '\\';