From 97604918baeab1767097d09eee2716883a063a49 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 9 Dec 2013 12:23:44 +0100 Subject: [PATCH] Fixed segfault (removed superfluous NUL-byte insertion) --- phpdbg_cmd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 4d18d471a96..8124b1d3a92 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)) {