all repos — mgba @ 88bf7b58adcac0b3120a696cebf086ace94b49fe

mGBA Game Boy Advance Emulator

VFS: Set dirname to . if there is no directory specified
Jeffrey Pfau jeffrey@endrift.com
Sat, 02 Jan 2016 04:46:39 -0800
commit

88bf7b58adcac0b3120a696cebf086ace94b49fe

parent

a7801b3963d195ce315e2eda1c05924f4d1b0cfe

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/util/vfs.csrc/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;