]> granicus.if.org Git - php/commitdiff
read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problem
authorAndrey Hristov <andrey@php.net>
Wed, 31 Oct 2012 17:26:09 +0000 (18:26 +0100)
committerAndrey Hristov <andrey@php.net>
Wed, 31 Oct 2012 17:26:09 +0000 (18:26 +0100)
ext/mysqlnd/mysqlnd_wireprotocol.c

index 1318c37a733c1c8caec4d013f31251d3fcce1ec7..ec0ff496f4de1943bdeeb7ffac40f008158a25fb 100644 (file)
@@ -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;