aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-02-23 01:04:18 +0000
committerYang Tse <yangsita@gmail.com>2009-02-23 01:04:18 +0000
commitfb90b43432afcd23b2b519264d38a38e17a3ee57 (patch)
treef8f170b97af29fbfc71e68c0baf3e4f83fa394a4
parent0302c21253d58ae4bf550973ae93cdea1ea0a17a (diff)
use the internal snprintf() function
-rw-r--r--lib/socks_sspi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/socks_sspi.c b/lib/socks_sspi.c
index f8e7e94c5..9798e8944 100644
--- a/lib/socks_sspi.c
+++ b/lib/socks_sspi.c
@@ -42,6 +42,9 @@
#include "socks.h"
#include "curl_sspi.h"
+#define _MPRINTF_REPLACE /* use the internal *printf() functions */
+#include <curl/mprintf.h>
+
/* The last #include file should be: */
#include "memdebug.h"
@@ -207,8 +210,8 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
service_name = malloc(strlen(service) + strlen(conn->proxy.name) + 2);
if(!service_name)
return CURLE_OUT_OF_MEMORY;
- _snprintf(service_name,strlen(service) +strlen(conn->proxy.name)+2,"%s/%s",
- service,conn->proxy.name);
+ snprintf(service_name,strlen(service) +strlen(conn->proxy.name)+2,"%s/%s",
+ service,conn->proxy.name);
}
input_desc.cBuffers = 1;