1
0
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:
Yasuo Ohgaki
2002-10-03 04:56:54 +00:00
parent 5f1bb18c36
commit f6dfd6b184
+1 -1
View File
@@ -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;
}
/* }}} */