win32.c
changeset 2560 00ad0c27c2f3
parent 2559 08e648022cb0
child 2623 b81954a1c306
--- a/win32.c	Fri Oct 28 00:09:59 2005 +0000
+++ b/win32.c	Fri Oct 28 00:18:57 2005 +0000
@@ -919,6 +919,9 @@
 
 		case FIOS_TYPE_DIRECT:
 			sprintf(path, "%s\\", item->name);
+			s = strrchr(path, '\\');
+			if (s[1] == '\0') s[0] = '\0'; // strip trailing slash
+
 			break;
 
 		case FIOS_TYPE_FILE: