From: Felipe Pena Date: Tue, 12 Nov 2013 15:17:24 +0000 (-0200) Subject: - Fix allocation size X-Git-Tag: php-5.6.0alpha1~110^2~419 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c37190876e58e8209c59cbed08b672599c6b164;p=php - Fix allocation size --- diff --git a/phpdbg_utils.c b/phpdbg_utils.c index 4ad75acd10..e8a5dc6347 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -19,7 +19,7 @@ #include #include -#include "zend_alloc.h" +#include "zend.h" #include "phpdbg_utils.h" int phpdbg_is_numeric(const char *str) /* {{{ */ @@ -60,7 +60,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; - *method = estrndup(sep+2, str + len - sep); + *method = estrndup(sep+2, str + len - (sep + 2)); return 1; } /* }}} */