Quote strings containing [ or ] when saving an alsa config

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

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;