Build DCC file's path using platform's directory separator instead of always using forward slash.

This commit is contained in:
Arnav Singh 2012-10-22 01:33:32 -07:00
parent a9fe82a1b8
commit 1cc599a0f9

View File

@ -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