From: Remi Collet Date: Thu, 2 Jan 2014 16:19:18 +0000 (+0100) Subject: Fix build with -Werror=format-security X-Git-Tag: RELEASE_2_0_7~40 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=d6975fac1d5c88362e9ce625e9b5248e23b3cfb1;hp=-c Fix build with -Werror=format-security --- d6975fac1d5c88362e9ce625e9b5248e23b3cfb1 diff --git a/php_http_client_curl.c b/php_http_client_curl.c index cc5e810..4033b9f 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -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; }