From 7c26c66ac7af91e39cc26ab6d7fb28f8e3ebf8e5 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 20 May 2026 08:34:09 +0200 Subject: [PATCH] correct connect.c next changes for dos83 --- src/connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connect.c b/src/connect.c index 03c1813..eeede78 100644 --- a/src/connect.c +++ b/src/connect.c @@ -593,6 +593,7 @@ static int func_search_entry(NW_PATH *nwpath, int attrib, if (f != (DIR*)NULL) { char *kpath=xkpath+strlen(xkpath); *kpath++ = '/'; + *kpath = '\0'; while ((dirbuff = readdir(f)) != (struct dirent*)NULL){ okflag = 0; if (dirbuff->d_ino) { @@ -678,6 +679,7 @@ static int get_dir_entry(NW_PATH *nwpath, if (f != (DIR*)NULL) { char *kpath=xkpath+strlen(xkpath); *kpath++ = '/'; + *kpath = '\0'; if (*sequence == MAX_U16) *sequence = 0; while (akt_sequence++ < *sequence) {