mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
Forgot 1 byte for \0
This commit is contained in:
@@ -2468,7 +2468,7 @@ PHPAPI char *php_addslashes(char *str, int length, int *new_length, int should_f
|
||||
if (should_free) {
|
||||
STR_FREE(str);
|
||||
}
|
||||
new_str = (char *) erealloc(new_str, *new_length);
|
||||
new_str = (char *) erealloc(new_str, *new_length+1);
|
||||
return new_str;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user