diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2013-12-09 12:23:44 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2013-12-09 12:23:44 +0100 |
commit | 97604918baeab1767097d09eee2716883a063a49 (patch) | |
tree | 51527666f1ebc741a2997a6f2d64b495020406dc | |
parent | af979393fcb50250b797b1c717fb034c61155fae (diff) | |
download | php-git-97604918baeab1767097d09eee2716883a063a49.tar.gz |
Fixed segfault (removed superfluous NUL-byte insertion)
-rw-r--r-- | phpdbg_cmd.c | 1 |
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)) { |