diff --git a/src/namspace.c b/src/namspace.c index b1ceaa8..8aeb28d 100644 --- a/src/namspace.c +++ b/src/namspace.c @@ -935,12 +935,12 @@ static int build_dos_name(DIR_BASE_ENTRY *e, uint8 *fname, int size_fname) return 0; strncpy(dir_unix, (char *)unixname, sizeof(dir_unix) - 1); - dir_unix[sizeof(dir_unix) - 1] = ''; + dir_unix[sizeof(dir_unix) - 1] = ''; xfree(unixname); slash = strrchr(dir_unix, '/'); if (slash) - *slash = ''; + *slash = ''; else strcpy(dir_unix, ".");