From 5f5563da38fc6cb2fe5345f5fb5709c8b49af871 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 24 May 2007 20:56:20 +0000 Subject: [PATCH] MFB 5_2 --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ = '\\'; -- 2.50.1