aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-07 04:25:16 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-07 04:25:16 +0000
commit6d2f9e38dd24629fa92c084fbf102d5dae15ca9a (patch)
tree7bdfd153e0fb49592641d456365c96dc925b4bae /util.c
parent75d7c8727bcc6ce4559e2ae6a4d00dc3458e1be6 (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. svn path=/trunk/; revision=10002
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 01a730f506..e4eb7c263d 100644
--- a/util.c
+++ b/util.c
@@ -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