Quote strings containing [ or ] when saving an alsa config

Signed-off-by: Bert Marcelis <bert.marcelis@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Bertware 2020-01-13 10:21:33 +01:00 committed by Jaroslav Kysela
parent 14ad963e19
commit a78dd1bd1e

View file

@ -1531,6 +1531,8 @@ static void string_print(char *str, int id, snd_output_t *out)
case '.': case '.':
case '{': case '{':
case '}': case '}':
case '[':
case ']':
case '\'': case '\'':
case '"': case '"':
goto quoted; goto quoted;