From 5f7a4874864fd6db81383554dabda16bc58fe899 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 25 Nov 2006 00:32:40 +0000 Subject: [PATCH] (file_name_absolute_p) [WINDOWSNT]: Use isalpha(). --- lib-src/emacsclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 5e8b563984d..6970c1ab9a4 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -451,7 +451,7 @@ file_name_absolute_p (filename) #ifdef WINDOWSNT /* X:\xxx is always absolute; X:xxx is an error and will fail. */ - if (islower (tolower (filename[0])) + if (isalpha (filename[0]) && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/')) return TRUE; -- 2.39.2