summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2013-12-09 12:23:44 +0100
committerBob Weinand <bobwei9@hotmail.com>2013-12-09 12:23:44 +0100
commit97604918baeab1767097d09eee2716883a063a49 (patch)
tree51527666f1ebc741a2997a6f2d64b495020406dc
parentaf979393fcb50250b797b1c717fb034c61155fae (diff)
downloadphp-git-97604918baeab1767097d09eee2716883a063a49.tar.gz
Fixed segfault (removed superfluous NUL-byte insertion)
-rw-r--r--phpdbg_cmd.c1
1 files changed, 0 insertions, 1 deletions
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)) {