diff src/c/cgi.c @ 1154:b0d632cc9edf

More fixes for NetBSD support
author Adam Chlipala <adamc@hcoop.net>
date Sat, 06 Feb 2010 20:47:23 -0500
parents b08b73591d2c
children 236dc296c32d
line wrap: on
line diff
--- a/src/c/cgi.c	Sat Feb 06 20:13:51 2010 -0500
+++ b/src/c/cgi.c	Sat Feb 06 20:47:23 2010 -0500
@@ -25,7 +25,7 @@
 
   strcpy(uppercased, "HTTP_");
   for (s = uppercased+5; *h; ++h)
-    *s++ = *h == '-' ? '_' : toupper(*h);
+    *s++ = *h == '-' ? '_' : toupper((int)*h);
   *s = 0;
 
   if ((r = getenv(uppercased)))