From: florian Date: Sun, 3 Aug 2014 22:06:51 +0000 (+0000) Subject: c-type functions / makros need a cast to unsigned char, not int X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b76c06cd52d5306fffef2d5a4891c601921866cd;p=openbsd c-type functions / makros need a cast to unsigned char, not int "feel free to commit" reyk@ --- 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 = '_'; }