]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
corrected the modifier for size_t
authordenis <>
Sat, 16 Dec 2006 14:49:20 +0000 (14:49 +0000)
committerdenis <>
Sat, 16 Dec 2006 14:49:20 +0000 (14:49 +0000)
opentracker.c

index a0316cfc72850914f88335451fbfdceea5075905..ca1b936e5369e0d814b99e50cb86d6efb4301c50 100644 (file)
@@ -64,7 +64,7 @@ void httperror(struct http_data* h,const char* title,const char* message)
     char* c = (char*)malloc(strlen(message)+strlen(title)+200);
     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);
     else    iob_addbuf_free( &h->iob, c,
-              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",
+              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",
                        title, strlen(message)+strlen(title)+16-4,title+4) );
 }