Commit 4592782e authored by Richard M. Stallman's avatar Richard M. Stallman

(directory_file_name): Don't get confused by // at end on Unix-like systems.

parent 14494e11
......@@ -658,7 +658,10 @@ directory_file_name (src, dst)
#else
if (slen > 1
&& IS_DIRECTORY_SEP (dst[slen - 1])
&& !IS_ANY_SEP (dst[slen - 2]))
#ifdef DOS_NT
&& !IS_ANY_SEP (dst[slen - 2])
#endif
)
dst[slen - 1] = 0;
#endif
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment