(canonicalize_filename) [DOS_NT]: Upcase the first

letter only if it is a drive letter.
This commit is contained in:
Eli Zaretskii 2000-08-20 08:30:05 +00:00
parent 441ba712b0
commit 3b5414898b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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++)