summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-25 00:18:02 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-25 00:18:02 +0200
commit842e74dce81f031439d2c1dc30dfff20c39eafa0 (patch)
treea61e9b0435887dae9db1304f23a8a5cfd5514bae /src/common
parentd6dec82d3d5bf2b130fa8c989c5650710e5b703e (diff)
Quickfix for plugin breakage after the DCC patch
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 38a87f26..5120c25a 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -254,7 +254,10 @@ file_part (char *file)
 		{
 		case 0:
 			return (filepart);
-		case G_DIR_SEPARATOR:
+		case '/':
+#ifdef WIN32
+		case '\\':
+#endif
 			filepart = file + 1;
 			break;
 		}