Fix bug #60948 mysqlnd FTBFS when -Wformat-security is enabled

# 5.3 not affected
This commit is contained in:
Johannes Schlüter 2012-03-05 23:55:12 +00:00
parent 5c896b344a
commit 4c4a33e706

View File

@ -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);
}