com php-src: fix valgrind warning: ext/mysqlnd/mysqlnd.c
| From: | Andrey Hristov | Date: | Mon, 09 Jul 2012 14:59:23 +0000 |
| Subject: | com php-src: fix valgrind warning: ext/mysqlnd/mysqlnd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-69547@lists.php.net to get a copy of this message | ||
Commit: 555db7dc4ecaffdbfb4a10f4d00ddd81c0f89ef6
Author: andrey <andrey@php.net> Mon, 9 Jul 2012 17:59:23 +0300
Parents: ed1f058591778103ea852324ad6cd847a10b2911
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=555db7dc4ecaffdbfb4a10f4d00ddd81c0f89ef6
Log:
fix valgrind warning
Changed paths:
M ext/mysqlnd/mysqlnd.c
Diff:
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 4a63681..900f820 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -2184,7 +2184,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, change_user)(MYSQLND_CONN_DATA * const conn,
}
memcpy(conn->auth_plugin_data, plugin_data, plugin_data_len);
- DBG_INF_FMT("salt=[%*s]", plugin_data_len - 1, plugin_data);
+ DBG_INF_FMT("salt=[%*.s]", plugin_data_len - 1, plugin_data);
/* The data should be allocated with malloc() */
scrambled_data =