summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorflorian <>2022-12-15 08:07:03 +0000
committerflorian <>2022-12-15 08:07:03 +0000
commit4ea33cbd5b1bd5d90283a46d371d5642fc8e7894 (patch)
treecbf1d7e7b46feee633ad5eef3db41c52452fd5db /src
parent573c16369a8636050331b68bb71eaca4b3d3068a (diff)
downloadopenbsd-4ea33cbd5b1bd5d90283a46d371d5642fc8e7894.tar.gz
openbsd-4ea33cbd5b1bd5d90283a46d371d5642fc8e7894.tar.bz2
openbsd-4ea33cbd5b1bd5d90283a46d371d5642fc8e7894.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/usr.sbin/ocspcheck/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.sbin/ocspcheck/http.c b/src/usr.sbin/ocspcheck/http.c
index 1669105469..82a504ad1a 100644
--- a/src/usr.sbin/ocspcheck/http.c
+++ b/src/usr.sbin/ocspcheck/http.c
@@ -1,4 +1,4 @@
1/* $Id: http.c,v 1.15 2021/09/14 16:37:20 tb Exp $ */ 1/* $Id: http.c,v 1.16 2022/12/15 08:07:03 florian Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> 3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
4 * 4 *
@@ -556,7 +556,7 @@ http_head_parse(const struct http *http, struct httpxfer *trans, size_t *sz)
556 } 556 }
557 557
558 *ccp++ = '\0'; 558 *ccp++ = '\0';
559 while (isspace((int)*ccp)) 559 while (isspace((unsigned char)*ccp))
560 ccp++; 560 ccp++;
561 h[hsz].key = cp; 561 h[hsz].key = cp;
562 h[hsz++].val = ccp; 562 h[hsz++].val = ccp;