mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
spa: escape double quotes
This commit is contained in:
parent
63a3811aa7
commit
6a21909281
2 changed files with 5 additions and 2 deletions
|
|
@ -346,6 +346,9 @@ static inline int spa_json_encode_string(char *str, int size, const char *val)
|
|||
case '\f':
|
||||
__PUT('\\'); __PUT('f');
|
||||
break;
|
||||
case '"':
|
||||
__PUT('\\'); __PUT('"');
|
||||
break;
|
||||
default:
|
||||
__PUT(*val);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue