From 799169b020249deb9647937c6b948e7010156d8d Mon Sep 17 00:00:00 2001 From: zodiac Date: Wed, 7 Jan 2009 23:35:40 +0000 Subject: [PATCH] Fixed a printf format error when compiling in 64bit mode. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@30 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- libhttp/httpconnection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libhttp/httpconnection.c b/libhttp/httpconnection.c index 0d6edf4..627f896 100644 --- a/libhttp/httpconnection.c +++ b/libhttp/httpconnection.c @@ -1277,11 +1277,11 @@ void httpSendReply(struct HttpConnection *http, int code, "HTTP/1.1 %d %s\r\n" "%s" "Content-Type: text/html; charset=utf-8\r\n" - "Content-Length: %d\r\n" + "Content-Length: %ld\r\n" "\r\n", code, msg, code != 200 ? "Connection: close\r\n" : "", - strlen(body)); + (long)strlen(body)); } int isHead = !strcmp(http->method, "HEAD"); if (!isHead) {