mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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
|
|
@ -60,7 +60,7 @@ static bool find_match(struct spa_json *arr, struct pw_properties *props)
|
|||
if (spa_json_is_null(value, len)) {
|
||||
success = str == NULL;
|
||||
} else {
|
||||
spa_json_parse_string(value, SPA_MIN(len, 1024), val);
|
||||
spa_json_parse_string(value, SPA_MIN(len, 1023), val);
|
||||
value = val;
|
||||
len = strlen(val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue