summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--opentracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index a0316cf..ca1b936 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -64,7 +64,7 @@ void httperror(struct http_data* h,const char* title,const char* message)
64 char* c = (char*)malloc(strlen(message)+strlen(title)+200); 64 char* c = (char*)malloc(strlen(message)+strlen(title)+200);
65 if( !c) iob_addbuf(&h->iob, "HTTP/1.0 500 internal error\r\nContent-Type: text/plain\r\nConnection: close\r\n\r\nout of memory\n", 90); 65 if( !c) iob_addbuf(&h->iob, "HTTP/1.0 500 internal error\r\nContent-Type: text/plain\r\nConnection: close\r\n\r\nout of memory\n", 90);
66 else iob_addbuf_free( &h->iob, c, 66 else iob_addbuf_free( &h->iob, c,
67 sprintf( c, "HTTP/1.0 %s\r\nContent-Type: text/html\r\nConnection: close\r\nContent-Length: %ld\r\n\r\n<title>%s</title>\n", 67 sprintf( c, "HTTP/1.0 %s\r\nContent-Type: text/html\r\nConnection: close\r\nContent-Length: %zd\r\n\r\n<title>%s</title>\n",
68 title, strlen(message)+strlen(title)+16-4,title+4) ); 68 title, strlen(message)+strlen(title)+16-4,title+4) );
69} 69}
70 70