Tested subprogram invocation, fixed decode_env_path.
[bpt/emacs.git] / src / w32.c
index 47c4f04..0f13703 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -2020,7 +2020,7 @@ normalize_filename (register char *fp, char path_sep)
 
   while (*fp)
     {
-      if (*fp == '/' || *fp == '\\')
+      if ((*fp == '/' || *fp == '\\') && *fp != path_sep)
        *fp = path_sep;
       fp++;
     }