Fix build with -Werror=format-security
authorRemi Collet <remi@php.net>
Thu, 2 Jan 2014 16:19:18 +0000 (17:19 +0100)
committerRemi Collet <remi@php.net>
Thu, 2 Jan 2014 16:19:18 +0000 (17:19 +0100)
php_http_client_curl.c

index cc5e810..4033b9f 100644 (file)
@@ -1807,7 +1807,7 @@ static STATUS php_http_client_curl_exec(php_http_client_t *h)
                                /* see http://msdn.microsoft.com/library/en-us/winsock/winsock/windows_sockets_error_codes_2.asp */
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "WinSock error: %d", WSAGetLastError());
 #else
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, strerror(errno));
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
 #endif
                                return FAILURE;
                        }