From 22c87864934257e8212d7ec4f39378017c8102f9 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Fri, 12 Jun 2009 13:24:57 +0000 Subject: 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. --- ext/mysqlnd/mysqlnd_statistics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_statistics.c') 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 -- cgit v1.2.1