diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-02-07 04:25:16 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-02-07 04:25:16 +0000 |
commit | 431ade6019a1b83a2daf21865108c3f4225d26e5 (patch) | |
tree | 7bdfd153e0fb49592641d456365c96dc925b4bae /util.c | |
parent | 2e558799577b629a8f409c43e95f5cdd84aecb15 (diff) |
Use G_DIR_SEPARATOR_S rather than "/" as the pathname separator when
constructing the pathname of a temporary file, so as not to frighten the
horses when they see an error message for a temporary capture file.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10002 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* util.c * Utility routines * - * $Id: util.c,v 1.76 2004/01/11 22:17:42 guy Exp $ + * $Id: util.c,v 1.77 2004/02/07 04:25:16 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -205,7 +205,7 @@ create_tempfile(char *namebuf, int namebuflen, const char *pfx) if (fd != -1) return fd; - return try_tempfile(namebuf, namebuflen, "/tmp", pfx); + return try_tempfile(namebuf, namebuflen, G_DIR_SEPARATOR_S "tmp", pfx); } /* ASCII/EBCDIC conversion tables from |