From b76c06cd52d5306fffef2d5a4891c601921866cd Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 3 Aug 2014 22:06:51 +0000 Subject: [PATCH] c-type functions / makros need a cast to unsigned char, not int "feel free to commit" reyk@ --- usr.sbin/httpd/server_fcgi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/httpd/server_fcgi.c b/usr.sbin/httpd/server_fcgi.c index 3ad68fc9d7f..53638ae187d 100644 --- a/usr.sbin/httpd/server_fcgi.c +++ b/usr.sbin/httpd/server_fcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_fcgi.c,v 1.17 2014/08/03 20:43:03 reyk Exp $ */ +/* $OpenBSD: server_fcgi.c,v 1.18 2014/08/03 22:06:51 florian Exp $ */ /* * Copyright (c) 2014 Florian Obser @@ -523,8 +523,8 @@ server_fcgi_writeheader(struct client *clt, struct kv *hdr, void *arg) return (-1); for (p = name; *p != '\0'; p++) { - if (isalpha((int)*p)) - *p = (char)toupper((int)*p); + if (isalpha((unsigned char)*p)) + *p = toupper((unsigned char)*p); else *p = '_'; } -- 2.20.1