diff options
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |