Commit 3b541489 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(canonicalize_filename) [DOS_NT]: Upcase the first

letter only if it is a drive letter.
parent 441ba712
2000-08-20 Eli Zaretskii <eliz@is.elta.co.il>
* etags.c (canonicalize_filename) [DOS_NT]: Upcase the first
letter only if it is a drive letter.
2000-07-14 Gerd Moellmann <gerd@gnu.org>
* ebrowse.c (xrealloc, xmalloc): Renamed from yrealloc and
......
......@@ -5484,7 +5484,7 @@ canonicalize_filename (fn)
{
#ifdef DOS_NT
/* Canonicalize drive letter case. */
if (islower (fn[0]))
if (fn[0] && fn[1] == ':' && islower (fn[0]))
fn[0] = toupper (fn[0]);
/* Convert backslashes to slashes. */
for (; *fn != '\0'; fn++)
......
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