summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2012-03-05 23:55:12 +0000
committerJohannes Schlüter <johannes@php.net>2012-03-05 23:55:12 +0000
commit5cea2169005b918c77a68e482e8bc67563cfcb45 (patch)
tree93ed95c2f2e4b5b09a673318dbbadc4611a091dc
parentf666285805bc71bd6a62db3605baa5462063408a (diff)
downloadphp-git-5cea2169005b918c77a68e482e8bc67563cfcb45.tar.gz
Fix bug #60948 mysqlnd FTBFS when -Wformat-security is enabled
# 5.3 not affected
-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 4d2bb8cac7..ce94ad8d8e 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -500,7 +500,7 @@ size_t php_mysqlnd_auth_write(void * _packet, MYSQLND_CONN_DATA * conn TSRMLS_DC
const char * const msg = "Authentication data too long. "
"Won't fit into the buffer and will be truncated. Authentication will thus fail";
SET_CLIENT_ERROR(*conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, msg);
- php_error_docref(NULL TSRMLS_CC, E_WARNING, msg);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", msg);
DBG_RETURN(0);
}