]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Quote strings containing [ or ] when saving an alsa config
authorBertware <bert.marcelis@outlook.com>
Mon, 13 Jan 2020 09:21:33 +0000 (10:21 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 13 Jan 2020 13:24:28 +0000 (14:24 +0100)
Signed-off-by: Bert Marcelis <bert.marcelis@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c

index c4db9f21a15eb79cdbb99cf18b9710449c204ba3..50d0403452a0ad9c33fc3197f8a442d7680d6430 100644 (file)
@@ -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;