diff options
author | Andrey Hristov <andrey@php.net> | 2016-01-05 13:19:32 +0100 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2016-01-05 13:19:32 +0100 |
commit | e64b845c89d1d59b76e683a4a7cab6e1940a2b21 (patch) | |
tree | 4653b251647c2281d350b40d344edb1315b39852 /ext/mysqlnd/mysqlnd_alloc.h | |
parent | 928d2cb3a4a62034790f210ff4bb0bacb8e8e826 (diff) | |
download | php-git-e64b845c89d1d59b76e683a4a7cab6e1940a2b21.tar.gz |
Fix typo that was unhiding only with USE_ZEND_ALLOC
Diffstat (limited to 'ext/mysqlnd/mysqlnd_alloc.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd_alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_alloc.h b/ext/mysqlnd/mysqlnd_alloc.h index 0077a6cd57..c8f99ec205 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'; |