From cec052e5b3c3c9cbf5725c2f299c3efe04e61172 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 20 May 2026 07:48:58 +0200 Subject: [PATCH] correct encoding of namespace.c take 2 --- src/namspace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/namspace.c b/src/namspace.c index 8aeb28d..b2c24e0 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] = '\0'; xfree(unixname); slash = strrchr(dir_unix, '/'); if (slash) - *slash = ''; + *slash = '\0'; else strcpy(dir_unix, ".");