summaryrefslogtreecommitdiff
path: root/www/cgilib/patches/patch-ac
blob: 7fd7937e8301d11abcab4859ab5c084f55e85afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ac,v 1.2 2004/05/23 23:28:30 danw Exp $

--- cgi.c.orig	Fri Aug 20 17:14:07 1999
+++ cgi.c
@@ -31,7 +31,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <ctype.h>
-#include <malloc.h>
 #include <cgi.h>
 
 int cgiDebugLevel = 0;
@@ -380,7 +379,7 @@ char **cgiGetVariables (s_cgi *parms)
 void cgiRedirect (const char *url)
 {
     if (url && strlen(url)) {
-	printf ("Content-type: text/html\nContent-length: %d\n", 77+(strlen(url)*2));
+	printf ("Content-type: text/html\nContent-length: %ld\n",(long)( 77+(strlen(url)*2)));
 	printf ("Status: 302 Temporal Relocation\n");
 	printf ("Location: %s\n\n", url);
 	printf ("<html>\n<body>\nThe page has been moved to <a href=\"%s\">%s</a>\n</body>\n</html>\n", url, url);