head 1.1; access; symbols pkgsrc-2026Q2:1.1.0.2 pkgsrc-2026Q2-base:1.1; locks; strict; comment @ * @; 1.1 date 2026.06.13.11.06.10; author markd; state Exp; branches; next ; commitid 6vrkbYqzdoKCYCJG; desc @@ 1.1 log @liboauth2{,-apache}: add version 2.3.0 Generic library to build C-based OAuth 2.x and OpenID Connect servers and clients e.g. web-server plugins. @ text @$NetBSD$ error: array subscript has type 'char' --- src/util.c.orig 2026-06-03 16:26:36.000000000 +0000 +++ src/util.c @@@@ -412,10 +412,10 @@@@ static char *_oauth2_trim(char *src) buf = oauth2_strdup(src); start = buf; - while (isspace(*start)) + while (isspace((unsigned char)*start)) ++start; end = &start[strlen(start)]; - while (--end >= start && isspace(*end)) + while (--end >= start && isspace((unsigned char)*end)) *end = '\0'; rv = oauth2_strdup(start); @