From 97ebcb517f30f8f46f174aa9847f02a59a330adc Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 6 Feb 2010 20:47:23 -0500 Subject: More fixes for NetBSD support --- src/c/cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c/cgi.c') diff --git a/src/c/cgi.c b/src/c/cgi.c index 98ad7479..e71b7e1c 100644 --- a/src/c/cgi.c +++ b/src/c/cgi.c @@ -25,7 +25,7 @@ static char *get_header(void *data, const char *h) { strcpy(uppercased, "HTTP_"); for (s = uppercased+5; *h; ++h) - *s++ = *h == '-' ? '_' : toupper(*h); + *s++ = *h == '-' ? '_' : toupper((int)*h); *s = 0; if ((r = getenv(uppercased))) -- cgit v1.2.3