summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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;
 		}