mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
json: allocate one extra byte for the \0
This commit is contained in:
parent
f891324e25
commit
579e8a4ea6
4 changed files with 6 additions and 5 deletions
|
|
@ -1616,7 +1616,7 @@ static int json_to_pod(struct spa_pod_builder *b, uint32_t id,
|
|||
spa_pod_builder_none(b);
|
||||
}
|
||||
else {
|
||||
char *val = alloca(len);
|
||||
char *val = alloca(len+1);
|
||||
spa_json_parse_string(value, len, val);
|
||||
switch (info->parent) {
|
||||
case SPA_TYPE_Id:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue