From b6c4fbee1b4e0fbfea56d335142a917b40b42a25 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Wed, 13 Nov 2013 05:39:18 +0000 Subject: [PATCH] ... --- phpdbg_print.c | 2 +- phpdbg_utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpdbg_print.c b/phpdbg_print.c index 6ef3d4c37f..1524ec5bf9 100644 --- a/phpdbg_print.c +++ b/phpdbg_print.c @@ -136,7 +136,7 @@ PHPDBG_PRINT(method) /* {{{ */ if (zend_lookup_class(class_name, strlen(class_name), &ce TSRMLS_CC) == SUCCESS) { zend_function *fbc; - if (zend_hash_find(&(*ce)->function_table, func_name, strlen(func_name), (void**)&fbc) == SUCCESS) { + if (zend_hash_find(&(*ce)->function_table, func_name, strlen(func_name)+1, (void**)&fbc) == SUCCESS) { phpdbg_notice( "%s Method %s", (fbc->type == ZEND_USER_FUNCTION) ? "User" : "Internal", diff --git a/phpdbg_utils.c b/phpdbg_utils.c index b567850c2c..df37df088e 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -64,7 +64,7 @@ int phpdbg_is_class_method(const char *str, size_t len, char **class, char **met } *class = estrndup(str, sep - str); - class[sep - str] = 0; + (*class)[sep - str] = 0; *method = estrndup(sep+2, str + len - (sep + 2)); -- 2.50.1