From 0031d76f2a77e583528a817bcf7b605052b95893 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 24 Jun 2004 10:43:22 +0000 Subject: use snprintf() to be on the safe side --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/http.c b/lib/http.c index 74422c58e..bd6adf964 100644 --- a/lib/http.c +++ b/lib/http.c @@ -144,7 +144,7 @@ static CURLcode Curl_output_basic(struct connectdata *conn, bool proxy) pwd = conn->passwd; } - sprintf(data->state.buffer, "%s:%s", user, pwd); + snprintf(data->state.buffer, sizeof(data->state.buffer), "%s:%s", user, pwd); if(Curl_base64_encode(data->state.buffer, strlen(data->state.buffer), &authorization) > 0) { -- cgit v1.2.3