1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

consider backticks as well as backslashes invalid chars

svn path=/icecast/trunk/log/; revision=18361
This commit is contained in:
Philipp Schafft 2012-06-07 18:09:48 +00:00
parent 51271b13e7
commit ae29f1dca9

View File

@ -518,7 +518,7 @@ static void __vsnprintf(char *str, size_t size, const char *format, va_list ap)
{ {
for (; *arg && block_len && size; arg++, size--) for (; *arg && block_len && size; arg++, size--)
{ {
if (*arg <= '"') if (*arg <= '"' || *arg == '`' || *arg == '\\')
*(str++) = '.'; *(str++) = '.';
else else
*(str++) = *arg; *(str++) = *arg;