VFS: Set dirname to . if there is no directory specified

This commit is contained in:
Jeffrey Pfau 2016-01-02 04:46:39 -08:00
parent a7801b3963
commit 88bf7b58ad
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ void separatePath(const char* path, char* dirname, char* basename, char* extensi
dirname[len] = '\0';
}
path = separatorPoint + 1;
} else if (dirname) {
strcpy(dirname, ".");
}
if (basename) {
size_t len;