correct encoding of namespace.c take 2
All checks were successful
Source release / source-package (push) Successful in 36s
All checks were successful
Source release / source-package (push) Successful in 36s
This commit is contained in:
@@ -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, ".");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user