summaryrefslogtreecommitdiffstats
path: root/lib/isc/win32/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/isc/win32/file.c')
-rw-r--r--lib/isc/win32/file.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/isc/win32/file.c b/lib/isc/win32/file.c
index 32f6a19..7da57fc 100644
--- a/lib/isc/win32/file.c
+++ b/lib/isc/win32/file.c
@@ -569,10 +569,14 @@ isc_file_isabsolute(const char *filename) {
if ((filename[0] == '\\') && (filename[1] == '\\')) {
return (true);
}
- if (isalpha(filename[0]) && filename[1] == ':' && filename[2] == '\\') {
+ if (isalpha((unsigned char)filename[0]) && filename[1] == ':' &&
+ filename[2] == '\\')
+ {
return (true);
}
- if (isalpha(filename[0]) && filename[1] == ':' && filename[2] == '/') {
+ if (isalpha((unsigned char)filename[0]) && filename[1] == ':' &&
+ filename[2] == '/')
+ {
return (true);
}
return (false);