VFS: Set dirname to . if there is no directory specified
Jeffrey Pfau jeffrey@endrift.com
Sat, 02 Jan 2016 04:46:39 -0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/util/vfs.c
→
src/util/vfs.c
@@ -173,7 +173,8 @@ strncpy(dirname, path, len);
dirname[len] = '\0'; } path = separatorPoint + 1; - + } else if (dirname) { + strcpy(dirname, "."); } if (basename) { size_t len;