--- a/os2.c Fri Oct 28 00:09:59 2005 +0000
+++ b/os2.c Fri Oct 28 00:18:57 2005 +0000
@@ -356,6 +356,8 @@
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: