]> granicus.if.org Git - php/commitdiff
MFB 5_2
authorRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 21:31:35 +0000 (21:31 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 21:31:35 +0000 (21:31 +0000)
ext/standard/string.c

index f06c1be5786220babf2c68c60fb2937044df44d5..584b98cf1336a55bd89c983e4eed06cb2548c606 100644 (file)
@@ -4735,6 +4735,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; source < end; source++) {
+               c = *source;
                if (flags[(unsigned char)c]) {
                        if ((unsigned char) c < 32 || (unsigned char) c > 126) {
                                *target++ = '\\';