diff options
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index cac506283e..cd1c5dc6df 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1374,8 +1374,8 @@ PHPAPI char *php_addslashes(char *str, int length, int *new_length, int should_f for (source=str,end=source+length,target=new_str; (c = *source) || source<end; source++) { switch(c) { case '\0': - *target++ = '\\'; // what if somebody escapes "foo\0"."12bar"? - *target++ = '0'; // we have to add \000 instead of just \0. + *target++ = '\\'; /* what if somebody escapes "foo\0"."12bar"? */ + *target++ = '0'; /* we have to add \000 instead of just \0. */ *target++ = '0'; *target++ = '0'; break; |