From: Bob Weinand Date: Mon, 9 Dec 2013 11:23:44 +0000 (+0100) Subject: Fixed segfault (removed superfluous NUL-byte insertion) X-Git-Tag: php-5.6.0alpha1~110^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97604918baeab1767097d09eee2716883a063a49;p=php Fixed segfault (removed superfluous NUL-byte insertion) --- diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 4d18d471a9..8124b1d3a9 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -94,7 +94,6 @@ PHPDBG_API phpdbg_param_type phpdbg_parse_param(const char *str, size_t len, php if (line_pos && phpdbg_is_numeric(line_pos+1)) { if (strchr(str, '#') == line_pos) { - *line_pos = 0; param->num = strtol(line_pos + 1, NULL, 0); if (phpdbg_is_class_method(str, line_pos - str, &class_name, &func_name)) {