head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.05.19.18.38.11; author spz; state Exp; branches; next ; commitid 5x0jwzSnfR7nhsGG; desc @@ 1.1 log @deal with ctype functions faulting on invalid input on NetBSD 11 (by making invalid input less likely) While at it add LICENSE @ text @$NetBSD$ deal with ctype functions faulting on invalid input on NetBSD 11 --- sequence.c.orig 2026-05-16 21:29:16.870728911 +0000 +++ sequence.c @@@@ -7,7 +7,7 @@@@ #include #include -#include +#include "ctypeconv.h" #include "config.h" #include "global.h" #include "db.h" @@@@ -620,7 +620,7 @@@@ start_group_search(char *group) if (group[2] != ':') return; - if (isdigit(group[3])) + if (ISDIGIT(group[3])) gs_index = atoi(group + 3); else { gs_group = group + 3; @