head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.07.28.21.23.17; author wiz; state Exp; branches; next ; commitid lvNS1aOM0yHQWsPG; desc @@ 1.1 log @xymonclient: Fix ctype(3) usage. Bump PKGREVISION. @ text @$NetBSD$ Fix ctype(3) usage. --- lib/loadhosts_file.c.orig 2026-07-28 21:21:15.668395905 +0000 +++ lib/loadhosts_file.c @@@@ -175,7 +175,7 @@@@ int load_hostnames(char *hostsfn, char *extrainclude, inbol += strspn(inbol, " \t"); ineol = strchr(inbol, '\n'); if (ineol) { - while ((ineol > inbol) && (isspace(*ineol) || (*ineol == '\n'))) ineol--; + while ((ineol > inbol) && (isspace((unsigned char)*ineol) || (*ineol == '\n'))) ineol--; if (*ineol != '\n') ineol++; insavchar = *ineol; @