com php-src: Fix typo that was unhiding only with USE_ZEND_ ALLOC: ext/mysqlnd/mysqlnd_alloc.h

From: Date: Tue, 05 Jan 2016 12:19:32 +0000
Subject: com php-src: Fix typo that was unhiding only with USE_ZEND_ ALLOC: ext/mysqlnd/mysqlnd_alloc.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90511@lists.php.net to get a copy of this message
Commit: e64b845c89d1d59b76e683a4a7cab6e1940a2b21 Author: Andrey Hristov <andrey@php.net> Tue, 5 Jan 2016 13:19:32 +0100 Parents: 928d2cb3a4a62034790f210ff4bb0bacb8e8e826 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e64b845c89d1d59b76e683a4a7cab6e1940a2b21 Log: Fix typo that was unhiding only with USE_ZEND_ALLOC Changed paths: M ext/mysqlnd/mysqlnd_alloc.h Diff: diff --git a/ext/mysqlnd/mysqlnd_alloc.h b/ext/mysqlnd/mysqlnd_alloc.h index 0077a6c..c8f99ec 100644 --- a/ext/mysqlnd/mysqlnd_alloc.h +++ b/ext/mysqlnd/mysqlnd_alloc.h @@ -69,7 +69,7 @@ PHPAPI extern struct st_mysqlnd_allocator_methods mysqlnd_allocator; static inline MYSQLND_STRING mnd_dup_cstring(const MYSQLND_CSTRING str, const zend_bool persistent) { - const MYSQLND_STRING ret = {(char*) mnd_pemalloc(str.l, persistent) + 1, str.l}; + const MYSQLND_STRING ret = {(char*) mnd_pemalloc(str.l + 1, persistent), str.l}; if (ret.s) { memcpy(ret..s, str.s, str.l); ret.s[str.l] = '\0';

« previous php.cvs (#90511) next »