mirror of
https://github.com/curl/curl.git
synced 2026-07-23 08:37:16 +03:00
use snprintf() to be on the safe side
This commit is contained in:
parent
00ee738fdd
commit
0031d76f2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue