diff --git a/prodos.tools.cpp b/prodos.tools.cpp index 06ad832..4fa6161 100644 --- a/prodos.tools.cpp +++ b/prodos.tools.cpp @@ -501,7 +501,7 @@ int prodos_FindFile( ProDOS_VolumeHeader_t *volume, const char *path, int base = for( i = 0; i < nPathLen; i++ ) if( path[i] == '/' ) { - iDirName = i - 1; + iDirName = i; break; }