1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-16 06:15:24 +00:00

Fix: Corrected escaping in %H (to MSB first)

This commit is contained in:
Philipp Schafft 2022-03-01 08:39:29 +00:00
parent f35cc512b4
commit c5a38dc195

View File

@ -653,8 +653,8 @@ static void __vsnprintf(char *str, size_t size, const char *format, va_list ap)
} else { } else {
*(str++) = '\\'; *(str++) = '\\';
*(str++) = 'x'; *(str++) = 'x';
*(str++) = hextable[(*arg >> 0) & 0x0F];
*(str++) = hextable[(*arg >> 4) & 0x0F]; *(str++) = hextable[(*arg >> 4) & 0x0F];
*(str++) = hextable[(*arg >> 0) & 0x0F];
/* Also count the additional chars for string size and block length */ /* Also count the additional chars for string size and block length */
size -= 3; size -= 3;
block_len -= 3; block_len -= 3;