mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-20 01:40:25 -05:00
core-util: replace remaining fixed size destination string functions by _malloc() versions
This helps portability to GNU/Hurd. Patch originally from Samuel Thibault but modified. Closes ticket #546
This commit is contained in:
parent
c6ea9fecc9
commit
49fd8ee72e
7 changed files with 119 additions and 38 deletions
|
|
@ -186,10 +186,12 @@ void pa_init_proplist(pa_proplist *p) {
|
|||
}
|
||||
|
||||
if (!pa_proplist_contains(p, PA_PROP_APPLICATION_PROCESS_BINARY)) {
|
||||
char t[PATH_MAX];
|
||||
if (pa_get_binary_name(t, sizeof(t))) {
|
||||
char *t;
|
||||
|
||||
if ((t = pa_get_binary_name_malloc())) {
|
||||
char *c = pa_utf8_filter(t);
|
||||
pa_proplist_sets(p, PA_PROP_APPLICATION_PROCESS_BINARY, c);
|
||||
pa_xfree(t);
|
||||
pa_xfree(c);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue