mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
use the internal snprintf() function
This commit is contained in:
parent
0302c21253
commit
fb90b43432
@ -42,6 +42,9 @@
|
|||||||
#include "socks.h"
|
#include "socks.h"
|
||||||
#include "curl_sspi.h"
|
#include "curl_sspi.h"
|
||||||
|
|
||||||
|
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
|
||||||
|
#include <curl/mprintf.h>
|
||||||
|
|
||||||
/* The last #include file should be: */
|
/* The last #include file should be: */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
@ -207,7 +210,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
|
|||||||
service_name = malloc(strlen(service) + strlen(conn->proxy.name) + 2);
|
service_name = malloc(strlen(service) + strlen(conn->proxy.name) + 2);
|
||||||
if(!service_name)
|
if(!service_name)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
_snprintf(service_name,strlen(service) +strlen(conn->proxy.name)+2,"%s/%s",
|
snprintf(service_name,strlen(service) +strlen(conn->proxy.name)+2,"%s/%s",
|
||||||
service,conn->proxy.name);
|
service,conn->proxy.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user