Skip to content

Commit 9760491

Browse files
committed
Fixed segfault (removed superfluous NUL-byte insertion)
1 parent af97939 commit 9760491

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

phpdbg_cmd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ PHPDBG_API phpdbg_param_type phpdbg_parse_param(const char *str, size_t len, php
9494

9595
if (line_pos && phpdbg_is_numeric(line_pos+1)) {
9696
if (strchr(str, '#') == line_pos) {
97-
*line_pos = 0;
9897
param->num = strtol(line_pos + 1, NULL, 0);
9998

10099
if (phpdbg_is_class_method(str, line_pos - str, &class_name, &func_name)) {

0 commit comments

Comments
 (0)