From ed343a2b03b348580a1c2610b09bd8bfa7306b44 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Date: Fri, 19 May 2000 03:37:53 +0000
Subject: [PATCH] DOSFS_DoGetFullPathName: terminate string weh called like
 .\\file

---
 files/dos_fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/dos_fs.c b/files/dos_fs.c
index 3ca9cd0d229..3d45991aec9 100644
--- a/files/dos_fs.c
+++ b/files/dos_fs.c
@@ -1177,7 +1177,7 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
     while ((p = strstr(full_name.short_name,"\\.\\")))
       {
 	*(p+1) = 0;
-	memmove(p+1,p+3,strlen(p+3));
+	memmove(p+1,p+3,strlen(p+3)+1);
       }
     if (!(DRIVE_GetFlags(drive) & DRIVE_CASE_PRESERVING))
       CharUpperA( full_name.short_name );
-- 
GitLab