artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47dc2a9
)
c-type functions / makros need a cast to unsigned char, not int
author
florian
<florian@openbsd.org>
Sun, 3 Aug 2014 22:06:51 +0000
(22:06 +0000)
committer
florian
<florian@openbsd.org>
Sun, 3 Aug 2014 22:06:51 +0000
(22:06 +0000)
"feel free to commit" reyk@
usr.sbin/httpd/server_fcgi.c
patch
|
blob
|
history
diff --git
a/usr.sbin/httpd/server_fcgi.c
b/usr.sbin/httpd/server_fcgi.c
index
3ad68fc
..
53638ae
100644
(file)
--- a/
usr.sbin/httpd/server_fcgi.c
+++ b/
usr.sbin/httpd/server_fcgi.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: server_fcgi.c,v 1.1
7 2014/08/03 20:43:03 reyk Exp $
*/
+/* $OpenBSD: server_fcgi.c,v 1.1
8 2014/08/03 22:06:51 florian Exp $
*/
/*
* Copyright (c) 2014 Florian Obser <florian@openbsd.org>
@@
-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 = '_';
}