diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 23:51:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 23:51:28 +0000 |
commit | 754c7de1e91eeb28c6d3766900ead0c3e44fdb85 (patch) | |
tree | 51433c0e38731dc9ecd342555a56f876980b1834 /lib/isc/win32/file.c | |
parent | Adding debian version 1:9.16.44-1~deb11u1. (diff) | |
download | bind9-754c7de1e91eeb28c6d3766900ead0c3e44fdb85.tar.xz bind9-754c7de1e91eeb28c6d3766900ead0c3e44fdb85.zip |
Merging upstream version 1:9.16.48.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/isc/win32/file.c')
-rw-r--r-- | lib/isc/win32/file.c | 8 |
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); |