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 cc5e8104f83573d5294d02ad25f6077477b7b7ab..4033b9f56c5c0c61a36b19ae4475d5e9edb50f19 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;
                        }