head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.10.15.19.44.23; author ktnb; state Exp; branches; next ; commitid LSxFfdjvSpVzRBZG; desc @@ 1.1 log @mblaze: update to 1.4 * mcom: $MBLAZE_EDITOR is prefered to configure the editor * mless: support OpenBSD less without LESSOPEN (needs mlesskey.example-openbsd) * magrep: support multibyte regexps. * Bug fixes. * Documentation improvements. @ text @$NetBSD$ NetBSD 11 ctype fix. --- mflow.c.orig 2026-10-15 19:37:27.104683588 +0000 +++ mflow.c @@@@ -114,7 +114,7 @@@@ main(int argc, char *argv[]) } char *cols = getenv("COLUMNS"); - if (cols && isdigit(*cols)) { + if (cols && isdigit((unsigned char)*cols)) { maxcolumn = atoi(cols); } else { struct winsize w; @@@@ -129,7 +129,7 @@@@ main(int argc, char *argv[]) xpledge("stdio", ""); char *maxcols = getenv("MAXCOLUMNS"); - if (maxcols && isdigit(*maxcols)) { + if (maxcols && isdigit((unsigned char)*maxcols)) { int m = atoi(maxcols); if (maxcolumn > m) maxcolumn = m; @