From 40249c6573dc9a77de1fe0268e2a5e287874fb7e Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 12 May 2000 21:45:52 +0000 Subject: [PATCH] GetFullPathname: add missing termination to the string. --- files/dos_fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/files/dos_fs.c b/files/dos_fs.c index e6575854f34..3ca9cd0d229 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -945,6 +945,7 @@ DWORD WINAPI GetShortPathNameA( LPCSTR longpath, LPSTR shortpath, tmpshortpath[sp] = '\\'; sp++; } + tmpshortpath[sp]=0;/*terminate string*/ lp++; continue; }