mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
test: null terminate output buffers
Previously, the standard i/o stream and daemon logs were not properly null terminated, which could cause issues in `print_lines()` inside `log_test_result()`. See #1710
This commit is contained in:
parent
921a9038e1
commit
3d152db758
1 changed files with 6 additions and 0 deletions
|
|
@ -996,6 +996,12 @@ error:
|
|||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < SPA_N_ELEMENTS(t->logs); i++) {
|
||||
char *e = pw_array_add(&t->logs[i], 1);
|
||||
spa_assert_se(e);
|
||||
*e = '\0';
|
||||
}
|
||||
|
||||
close_pipes(read_fds);
|
||||
close_pipes(write_fds);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue