spa: escape double quotes

This commit is contained in:
eater 2021-02-18 13:59:09 +01:00
parent 63a3811aa7
commit 6a21909281
No known key found for this signature in database
GPG key ID: AD2560A0F84F0759
2 changed files with 5 additions and 2 deletions

View file

@ -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;