mirror of
https://github.com/mirror/wget.git
synced 2025-03-26 12:06:06 +08:00
* src/utils.c: Fix -Wformat= warnings
This commit is contained in:
parent
81b3aaf75c
commit
f2574e90b7
@ -2533,7 +2533,7 @@ wg_hex_to_string (char *str_buffer, const char *hex_buffer, size_t hex_len)
|
|||||||
for (i = 0; i < hex_len; i++)
|
for (i = 0; i < hex_len; i++)
|
||||||
{
|
{
|
||||||
/* Each byte takes 2 characters. */
|
/* Each byte takes 2 characters. */
|
||||||
sprintf (str_buffer + 2 * i, "%02x", hex_buffer[i] & 0xFF);
|
sprintf (str_buffer + 2 * i, "%02x", (unsigned) (hex_buffer[i] & 0xFF));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Null-terminate result. */
|
/* Null-terminate result. */
|
||||||
|
Loading…
Reference in New Issue
Block a user