head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.06.28.00.51.59; author gdt; state Exp; branches; next ; commitid Xu5otFB9D8606vLG; desc @@ 1.1 log @x11/xephem: Grab 3 more files of upstream pull request 126 Files outside of the old WRKSRC were not picked up by mkpatches. Restore patch comments lost in BUILD_DIRS pivot. @ text @$NetBSD$ Fix ctype(3) UB. Cherry-picked from https://github.com/XEphem/XEphem/pull/126 --- libastro/constel.c.orig 2024-02-13 14:35:36.000000000 +0000 +++ libastro/constel.c @@@@ -1665,9 +1665,9 @@@@ cns_loadfigs (FILE *fp, char *msg) int code; /* skip leading/trailing whitespace, blank lines and # lines */ - for (lp = line+strlen(line)-1; lp>=line && isspace(*lp); --lp) + for (lp = line+strlen(line)-1; lp>=line && isspace((unsigned char)*lp); --lp) *lp = '\0'; - for (lp = line; isspace(*lp); lp++) + for (lp = line; isspace((unsigned char)*lp); lp++) continue; if (*lp == '#' || *lp == '\0') continue; @