]> granicus.if.org Git - php/commitdiff
Fix bug #60948 mysqlnd FTBFS when -Wformat-security is enabled
authorJohannes Schlüter <johannes@php.net>
Mon, 5 Mar 2012 23:55:12 +0000 (23:55 +0000)
committerJohannes Schlüter <johannes@php.net>
Mon, 5 Mar 2012 23:55:12 +0000 (23:55 +0000)
# 5.3 not affected

ext/mysqlnd/mysqlnd_wireprotocol.c

index 4d2bb8cac7f4efb8105e8ca70897ce70028ec924..ce94ad8d8eb45e76b66f126082ed0fa8bd9120e7 100644 (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);
                }