From fa433bfe2d0b60a3106b20b1c6cfa60a56cb7bb8 Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 15 Dec 2022 08:07:03 +0000 Subject: [PATCH] The argument to ctype functions must be EOF or representable as an unsigned char. Casting to int is particularly useless because that's what the compiler already does. We need to prevent sign extension, not write down that we want sign extension. OK deraadt, kn, miod, op --- usr.sbin/ocspcheck/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ocspcheck/http.c b/usr.sbin/ocspcheck/http.c index 16691054697..82a504ad1a1 100644 --- a/usr.sbin/ocspcheck/http.c +++ b/usr.sbin/ocspcheck/http.c @@ -1,4 +1,4 @@ -/* $Id: http.c,v 1.15 2021/09/14 16:37:20 tb Exp $ */ +/* $Id: http.c,v 1.16 2022/12/15 08:07:03 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -556,7 +556,7 @@ http_head_parse(const struct http *http, struct httpxfer *trans, size_t *sz) } *ccp++ = '\0'; - while (isspace((int)*ccp)) + while (isspace((unsigned char)*ccp)) ccp++; h[hsz].key = cp; h[hsz++].val = ccp; -- 2.20.1