mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-03 01:40:08 -05:00
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:
parent
14ad963e19
commit
a78dd1bd1e
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue