com php-src: - Fix allocation size: phpdbg_utils.c

From: Date: Tue, 12 Nov 2013 15:17:24 +0000
Subject: com php-src: - Fix allocation size: phpdbg_utils.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75059@lists.php.net to get a copy of this message
Commit: 9c37190876e58e8209c59cbed08b672599c6b164 Author: Felipe Pena <felipensp@gmail.com> Tue, 12 Nov 2013 13:17:24 -0200 Parents: edbb1313a1f3f6ecae11a0d120db3c2f4c381f00 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9c37190876e58e8209c59cbed08b672599c6b164 Log: - Fix allocation size Changed paths: M phpdbg_utils.c Diff: diff --git a/phpdbg_utils.c b/phpdbg_utils.c index 4ad75ac..e8a5dc6 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -19,7 +19,7 @@ #include <stdio.h> #include <ctype.h> -#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; } /* }}} */

« previous php.cvs (#75059) next »