head 1.2; access; symbols; locks; strict; comment @ * @; 1.2 date 2026.06.28.00.51.58; author gdt; state Exp; branches; next 1.1; commitid Xu5otFB9D8606vLG; 1.1 date 2026.06.28.00.44.25; author gdt; state Exp; branches; next ; commitid krbxq7yUzi8U2vLG; desc @@ 1.2 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: patch-GUI_xephem_saveres.c,v 1.1 2026/06/28 00:44:25 gdt Exp $ Fix ctype(3) UB. Cherry-picked from https://github.com/XEphem/XEphem/pull/126 --- GUI/xephem/saveres.c.orig 2024-02-13 14:35:36.000000000 +0000 +++ GUI/xephem/saveres.c @@@@ -1785,10 +1785,10 @@@@ char *from; { char *lastnwsp; /* last non w/s char in to not counting '\0' */ - while (isspace(*from)) + while (isspace((unsigned char)*from)) from++; for (lastnwsp = NULL; (*to = *from) != '\0'; to++, from++) - if (!isspace(*to)) + if (!isspace((unsigned char)*to)) lastnwsp = to; if (lastnwsp) *++lastnwsp = '\0'; @ 1.1 log @x11/xephem: Pivot from WRKSRC to BUILD_DIRS WRKSRC implies that the build does not look outside of it, but that's not true. Instead, make WRKSRC top level, and instead invoke make in (singleton) BUILD_DIRS. This is a huge commit textually, but it's just a pivot in how the subdir is used, adding BUILD_DIRS to paths, and renaming all the patches. NFCI; this should produce the same binary. Works on netbsd-10 amd64 in "look at sky view, didn't crash, not blank" testing. @ text @d1 3 a3 1 $NetBSD$ @