From fc85cb2995c7ce6196464dce599ad540f7dfe413 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 11 May 1996 17:26:00 +0000 Subject: [PATCH] (map_win32_filename): If not a fat volume, cvt name to dos. --- src/w32.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/w32.c b/src/w32.c index 63f843606f8..bf9f858b700 100644 --- a/src/w32.c +++ b/src/w32.c @@ -763,7 +763,6 @@ map_win32_filename (const char * name, const char ** pPath) static char shortname[MAX_PATH]; char * str = shortname; char c; - const char * orig_name = name; char * path; if (is_fat_volume (name, &path)) /* truncate to 8.3 */ @@ -841,14 +840,17 @@ map_win32_filename (const char * name, const char ** pPath) } } *str = '\0'; - - name = shortname; + } + else + { + strcpy (shortname, name); + unixtodos_filename (shortname); } if (pPath) - *pPath = name + (path - orig_name); + *pPath = shortname + (path - name); - return name; + return shortname; } -- 2.39.5