mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-21 05:00:19 +00:00
Build DCC file's path using platform's directory separator instead of always using forward slash.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user