aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-22 07:50:15 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-22 07:50:15 +0000
commit7da3a2cfd3f09bef824525ce11315eff3d5c983c (patch)
treeddae088358be6c1fc0729c7e3d21fc8247cbf221 /util.c
parentdf215abbddabceab2cd63e2bdedb1ce142470828 (diff)
Fix the other place where we construct temporary path names to use
G_DIR_SEPARATOR and G_DIR_SEPARATOR_S, to get rid of one more horse-frightening pathname. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10955 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index 452111e7c9..524f0a43ed 100644
--- a/util.c
+++ b/util.c
@@ -1,7 +1,7 @@
/* util.c
* Utility routines
*
- * $Id: util.c,v 1.79 2004/05/10 22:20:24 obiot Exp $
+ * $Id: util.c,v 1.80 2004/05/22 07:50:15 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -114,14 +114,14 @@ setup_tmpdir(char *dir)
int len = strlen(dir);
char *newdir;
- /* Append slash if necessary */
- if (dir[len - 1] == '/') {
+ /* Append path separator if necessary */
+ if (dir[len - 1] == G_DIR_SEPARATOR) {
newdir = dir;
}
else {
newdir = g_malloc(len + 2);
strcpy(newdir, dir);
- strcat(newdir, "/");
+ strcat(newdir, G_DIR_SEPARATOR_S);
}
return newdir;
}