# HG changeset patch # User Richard M. Stallman # Date 831835560 0 # Node ID 867e4ead88d9d575b2dfbb5cef09f25215455b8e # Parent 3b8ece0572d5ebe4462a07e2a62eee2572237e36 (map_win32_filename): If not a fat volume, cvt name to dos. diff -r 3b8ece0572d5 -r 867e4ead88d9 src/w32.c --- a/src/w32.c Sat May 11 17:11:06 1996 +0000 +++ b/src/w32.c Sat May 11 17:26:00 1996 +0000 @@ -763,7 +763,6 @@ 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 @@ } } *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; }