correct encoding of namespace.c take 2
All checks were successful
Source release / source-package (push) Successful in 36s

This commit is contained in:
Mario Fetka
2026-05-20 07:48:58 +02:00
parent a145777e7e
commit cec052e5b3

View File

@@ -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] = '\0';
xfree(unixname);
slash = strrchr(dir_unix, '/');
if (slash)
*slash = '';
*slash = '\0';
else
strcpy(dir_unix, ".");