mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:03:31 +03:00
Replaced all uses of sprintf() with the safer snprintf(). It is just a
precaution to prevent mistakes to lead to buffer overflows.
This commit is contained in:
parent
5e34f3dc01
commit
feb2dd2835
13 changed files with 490 additions and 486 deletions
|
|
@ -201,7 +201,7 @@ static void md5_to_ascii(unsigned char *source, /* 16 bytes */
|
|||
{
|
||||
int i;
|
||||
for(i=0; i<16; i++)
|
||||
sprintf((char *)&dest[i*2], "%02x", source[i]);
|
||||
snprintf((char *)&dest[i*2], 3, "%02x", source[i]);
|
||||
}
|
||||
|
||||
CURLcode Curl_output_digest(struct connectdata *conn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue