From: Bertware Date: Mon, 13 Jan 2020 09:21:33 +0000 (+0100) Subject: Quote strings containing [ or ] when saving an alsa config X-Git-Tag: v1.2.2~20 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a78dd1bd1e9b47c2aee9b1e066de515b6854695a;p=alsa-lib.git Quote strings containing [ or ] when saving an alsa config Signed-off-by: Bert Marcelis Signed-off-by: Jaroslav Kysela --- diff --git a/src/conf.c b/src/conf.c index c4db9f21..50d04034 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1531,6 +1531,8 @@ static void string_print(char *str, int id, snd_output_t *out) case '.': case '{': case '}': + case '[': + case ']': case '\'': case '"': goto quoted;