diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-09-17 20:58:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-09-17 20:58:36 +0200 |
commit | 2d9168ceb388cbb6dba49cc3a531921f78ec3295 (patch) | |
tree | 7aeae7015c8da1d23b5d72a1af56dc3cbd9d8159 /src/pulsecore/core-util.c | |
parent | 3de5c49e4289bb646919bdced6fccb82ced51ad0 (diff) |
Improve TMPDIR handling
Patch from 'jnelson',
http://pulseaudio.org/ticket/653
Diffstat (limited to 'src/pulsecore/core-util.c')
-rw-r--r-- | src/pulsecore/core-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 7a9f458c..690f34c9 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -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 (;;) { |