diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-12 08:22:16 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-12 08:22:16 +0000 |
commit | 751d503f54596d6d86f969683fec2fe296d9d1f0 (patch) | |
tree | b3ad1a4a8264b6ba4bc92494fee5316dcd09eac3 /lib/sendf.c | |
parent | b2e47dfde4a92a8365ff49e5a0b981dc3e05dab7 (diff) |
sprintf() => snprintf()
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index dcb8cf74a..4984bd7f5 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -55,6 +55,7 @@ #include "urldata.h" #include "sendf.h" +#define _MPRINTF_REPLACE /* use the internal *printf() functions */ #include <curl/mprintf.h> #ifdef KRB4 @@ -87,7 +88,7 @@ void failf(struct UrlData *data, char *fmt, ...) va_list ap; va_start(ap, fmt); if(data->errorbuffer) - vsprintf(data->errorbuffer, fmt, ap); + vsnprintf(data->errorbuffer, CURL_ERROR_SIZE, fmt, ap); else /* no errorbuffer receives this, write to data->err instead */ vfprintf(data->err, fmt, ap); va_end(ap); |