From 1cc599a0f92eddf65d3bb9b6d874c21b1281d803 Mon Sep 17 00:00:00 2001 From: Arnav Singh Date: Mon, 22 Oct 2012 01:33:32 -0700 Subject: Build DCC file's path using platform's directory separator instead of always using forward slash. --- src/common/dcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dcc.c b/src/common/dcc.c index 1b775897..6f0dedcc 100644 --- a/src/common/dcc.c +++ b/src/common/dcc.c @@ -2337,8 +2337,8 @@ dcc_add_file (session *sess, char *file, DCC_SIZE size, int port, char *nick, gu strlen (file) + 4); strcpy (dcc->destfile, prefs.hex_dcc_dir); - if (prefs.hex_dcc_dir[strlen (prefs.hex_dcc_dir) - 1] != '/') - strcat (dcc->destfile, "/"); + if (prefs.hex_dcc_dir[strlen (prefs.hex_dcc_dir) - 1] != G_DIR_SEPARATOR) + strcat (dcc->destfile, G_DIR_SEPARATOR_S); if (prefs.hex_dcc_save_nick) { #ifdef WIN32 -- cgit 1.4.1