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_marsmenu.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/marsmenu.c.orig 2024-02-13 14:35:36.000000000 +0000 +++ GUI/xephem/marsmenu.c @@@@ -998,7 +998,7 @@@@ m_create_mfform() int j; /* widget name is first word in type */ - for (j = 0; isalpha(mfsp->type[j]); j++) + for (j = 0; isalpha((unsigned char)mfsp->type[j]); j++) buf[j] = mfsp->type[j]; buf[j] = '\0'; @@@@ -2222,7 +2222,7 @@@@ char *name; { int l; - for (l = strlen(name)-1; l >= 0 && isspace(name[l]); --l) + for (l = strlen(name)-1; l >= 0 && isspace((unsigned char)name[l]); --l) name[l] = '\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$ @