summary refs log tree commit diff stats
path: root/src/common/util.c
diff options
context:
space:
mode:
authorbviktor <bviktor@outlook.com>2012-10-23 12:18:59 -0700
committerbviktor <bviktor@outlook.com>2012-10-23 12:18:59 -0700
commitac9bbc6d9982e774cde9711e8d906978b78acdfd (patch)
tree083bed641aca97155e33eefa19ab9fcae316d4d8 /src/common/util.c
parenta9fe82a1b8a61276ba7c1f8165f5f6c4cf3b556e (diff)
parent8902f52eb955b8102912c2de3ae57d962934e52b (diff)
Merge pull request #180 from Arnavion/fix-filename-encoding
Fix filename encoding error for DCC transfers of files with non-ASCII characters in their name
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 54ad4f78..15184250 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -254,10 +254,7 @@ file_part (char *file)
 		{
 		case 0:
 			return (filepart);
-		case '/':
-#ifdef WIN32
-		case '\\':
-#endif
+		case G_DIR_SEPARATOR:
 			filepart = file + 1;
 			break;
 		}