Build DCC file's path using platform's directory separator instead of always using forward slash.
This commit is contained in:
parent
a9fe82a1b8
commit
1cc599a0f9
|
@ -2337,8 +2337,8 @@ dcc_add_file (session *sess, char *file, DCC_SIZE size, int port, char *nick, gu
|
||||||
strlen (file) + 4);
|
strlen (file) + 4);
|
||||||
|
|
||||||
strcpy (dcc->destfile, prefs.hex_dcc_dir);
|
strcpy (dcc->destfile, prefs.hex_dcc_dir);
|
||||||
if (prefs.hex_dcc_dir[strlen (prefs.hex_dcc_dir) - 1] != '/')
|
if (prefs.hex_dcc_dir[strlen (prefs.hex_dcc_dir) - 1] != G_DIR_SEPARATOR)
|
||||||
strcat (dcc->destfile, "/");
|
strcat (dcc->destfile, G_DIR_SEPARATOR_S);
|
||||||
if (prefs.hex_dcc_save_nick)
|
if (prefs.hex_dcc_save_nick)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
Loading…
Reference in New Issue