summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/libc/res_query.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libnetworking/libc/res_query.c')
-rw-r--r--c/src/exec/libnetworking/libc/res_query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/exec/libnetworking/libc/res_query.c b/c/src/exec/libnetworking/libc/res_query.c
index 42b7f1ecc2..784fa433bc 100644
--- a/c/src/exec/libnetworking/libc/res_query.c
+++ b/c/src/exec/libnetworking/libc/res_query.c
@@ -387,17 +387,17 @@ hostalias(name)
setbuf(fp, NULL);
buf[sizeof(buf) - 1] = '\0';
while (fgets(buf, sizeof(buf), fp)) {
- for (cp1 = buf; *cp1 && !isspace(*cp1); ++cp1)
+ for (cp1 = buf; *cp1 && !isspace((int)*cp1); ++cp1)
;
if (!*cp1)
break;
*cp1 = '\0';
if (!strcasecmp(buf, name)) {
- while (isspace(*++cp1))
+ while (isspace((int)*++cp1))
;
if (!*cp1)
break;
- for (cp2 = cp1 + 1; *cp2 && !isspace(*cp2); ++cp2)
+ for (cp2 = cp1 + 1; *cp2 && !isspace((int)*cp2); ++cp2)
;
abuf[sizeof(abuf) - 1] = *cp2 = '\0';
strncpy(abuf, cp1, sizeof(abuf) - 1);