changeset 30969:1ccc2bce4062

(canonicalize_filename) [DOS_NT]: Upcase the first letter only if it is a drive letter.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 20 Aug 2000 08:29:25 +0000
parents 2dfd4d6a9043
children 6b5d76c2bc28
files lib-src/etags.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Sun Aug 20 08:05:35 2000 +0000
+++ b/lib-src/etags.c	Sun Aug 20 08:29:25 2000 +0000
@@ -5484,7 +5484,7 @@
 {
 #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++)