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:
parent
51271b13e7
commit
ae29f1dca9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user