diff options
author | Andrey Hristov <andrey@php.net> | 2009-06-12 13:24:57 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2009-06-12 13:24:57 +0000 |
commit | 22c87864934257e8212d7ec4f39378017c8102f9 (patch) | |
tree | b320684def86fdede80891fd8d07e38658c060da /ext/mysqlnd/mysqlnd_statistics.c | |
parent | 5f8ca6da9515db5c23a1f0b44a0993b345743dd9 (diff) | |
download | php-git-22c87864934257e8212d7ec4f39378017c8102f9.tar.gz |
MFH:
Fix crash when tracing is enabled. Position after buffer was used also
direct usage of MYSQLND_STRING pointer instead of the "s" property of the
structure.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_statistics.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_statistics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_statistics.c b/ext/mysqlnd/mysqlnd_statistics.c index 4e6089b915..7e6ea55060 100644 --- a/ext/mysqlnd/mysqlnd_statistics.c +++ b/ext/mysqlnd/mysqlnd_statistics.c @@ -168,7 +168,7 @@ mysqlnd_fill_stats_hash(const MYSQLND_STATS * const stats, zval *return_value TS UChar *ustr, *tstr; int ulen, tlen; #endif - char tmp[22]; + char tmp[25]; sprintf((char *)&tmp, MYSQLND_LLU_SPEC, stats->values[i]); #if PHP_MAJOR_VERSION >= 6 |