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; }