Improve TMPDIR handling

Patch from 'jnelson',

http://pulseaudio.org/ticket/653
This commit is contained in:
Lennart Poettering 2009-09-17 20:58:36 +02:00
parent 3de5c49e42
commit 2d9168ceb3
2 changed files with 15 additions and 2 deletions

View file

@ -1390,7 +1390,7 @@ static char* make_random_dir(mode_t m) {
if (!tmpdir || !pa_is_path_absolute(tmpdir))
tmpdir = "/tmp";
fn = pa_sprintf_malloc("%s/pulse-XXXXXXXXXXXX", tmpdir);
fn = pa_sprintf_malloc("%s" PA_PATH_SEP "pulse-XXXXXXXXXXXX", tmpdir);
pathlen = strlen(fn);
for (;;) {