diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-24 10:43:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-24 10:43:22 +0000 |
commit | 0031d76f2a77e583528a817bcf7b605052b95893 (patch) | |
tree | 32b2e7825f2f364745a23a029fc5cf51629f9c09 /lib | |
parent | 00ee738fdd3a32d47060e041d18ee8300980e350 (diff) |
use snprintf() to be on the safe side
Diffstat (limited to 'lib')
-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) { |