summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common/dcc.c4
1 files 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