diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-22 07:50:15 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-22 07:50:15 +0000 |
commit | 7da3a2cfd3f09bef824525ce11315eff3d5c983c (patch) | |
tree | ddae088358be6c1fc0729c7e3d21fc8247cbf221 /util.c | |
parent | df215abbddabceab2cd63e2bdedb1ce142470828 (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |