]> granicus.if.org Git - php/commitdiff
Fixed segfault (removed superfluous NUL-byte insertion)
authorBob Weinand <bobwei9@hotmail.com>
Mon, 9 Dec 2013 11:23:44 +0000 (12:23 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 9 Dec 2013 11:23:44 +0000 (12:23 +0100)
phpdbg_cmd.c

index 4d18d471a96a5440a1674914e2df41a082997196..8124b1d3a92bcb59d06f755dba4d4f1a653104b4 100644 (file)
@@ -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)) {