summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorArnav Singh <arnavion@gmail.com>2012-10-22 01:33:32 -0700
committerArnav Singh <arnavion@gmail.com>2012-10-22 19:06:18 -0700
commit1cc599a0f92eddf65d3bb9b6d874c21b1281d803 (patch)
tree8f655ec816e0870f7c77d3263c197aaa62fab59a /src/common
parenta9fe82a1b8a61276ba7c1f8165f5f6c4cf3b556e (diff)
Build DCC file's path using platform's directory separator instead of always using forward slash.
Diffstat (limited to 'src/common')
-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