summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2012-10-31 18:26:09 +0100
committerAndrey Hristov <andrey@php.net>2012-10-31 18:26:09 +0100
commita17559d4224eea0148ad67de9bb1cca22cbef7f6 (patch)
treec65fe941753a8baed9fcfeb371d8fe36c349e69f
parentb3cd64afef4d7c35d8551d34858f98a6286db975 (diff)
downloadphp-git-a17559d4224eea0148ad67de9bb1cca22cbef7f6.tar.gz
read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem
-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 1318c37a73..ec0ff496f4 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -982,7 +982,7 @@ php_mysqlnd_rset_field_read(void *_packet, MYSQLND *conn TSRMLS_DC)
p += 2;
BAIL_IF_NO_MORE_DATA;
- meta->decimals = uint2korr(p);
+ meta->decimals = uint1korr(p);
p += 1;
BAIL_IF_NO_MORE_DATA;