summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-02-01 17:12:40 +0000
committerAndrey Hristov <andrey@php.net>2010-02-01 17:12:40 +0000
commit7b68aab24c89c636ff75964dd0bfbcad9292208a (patch)
treec2dddff1a040241eb119d5471c7dbd36941043f9
parent860e06a8ba0a6bcebc77f911893c8d513cee6a8c (diff)
downloadphp-git-7b68aab24c89c636ff75964dd0bfbcad9292208a.tar.gz
Fix second bug in that code, + instead of += thus not increasing
a pointer and mangling data. Again, ext/mysql and ext/mysqli doesn't have access to this codepath.
-rw-r--r--ext/mysqlnd/mysqlnd_wireprotocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c
index 11a1191ee5..5710377882 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -956,7 +956,7 @@ php_mysqlnd_rset_field_read(void *_packet, MYSQLND *conn TSRMLS_DC)
if (meta->db && meta->db != mysqlnd_empty_string) {
len = meta->db_length;
meta->db = memcpy(root_ptr, meta->db, len);
- *(root_ptr + len) = '\0';
+ *(root_ptr +=len) = '\0';
root_ptr++;
}