openbsd-ports/net/rrdtool/patches/patch-src_rrd_cgi_c
2004-06-08 20:21:24 +00:00

18 lines
486 B
Plaintext

$OpenBSD: patch-src_rrd_cgi_c,v 1.1 2004/06/08 20:21:24 danh Exp $
--- src/rrd_cgi.c.orig 2004-04-06 17:38:12.000000000 -0400
+++ src/rrd_cgi.c 2004-06-08 15:11:49.000000000 -0400
@@ -340,9 +340,11 @@ int main(int argc, char *argv[]) {
}
if (!filter) {
+ unsigned long buflen = strlen(buffer);
+
printf ("Content-Type: text/html\n"
- "Content-Length: %d\n",
- strlen(buffer));
+ "Content-Length: %lu\n",
+ buflen);
if (labs(goodfor) > 0) {
time_t now;