correct encoding of namespace.c
All checks were successful
Source release / source-package (push) Successful in 1m7s

This commit is contained in:
Mario Fetka
2026-05-20 07:40:20 +02:00
parent 2e0951df74
commit a145777e7e

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