X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Fresp.c;h=da354f99e40f3dcb98d91863a406550d60bf0504;hp=b6c91ae726d54115ee49c7d90834ece40e13d038;hb=f9255ddd4966787957cb8eb676155d99883d7955;hpb=a701d7b797668c33d90c6410331cd7b599f62830 diff --git a/lib/resp.c b/lib/resp.c index b6c91ae..da354f9 100644 --- a/lib/resp.c +++ b/lib/resp.c @@ -76,7 +76,7 @@ void simpleerror(int fd, int code, char *msg, char *fmt, ...) out = fdopen(fd, "w"); fprintf(out, "HTTP/1.1 %i %s\r\n", code, msg); fprintf(out, "Content-Type: text/html\r\n"); - fprintf(out, "Content-Length: %i\r\n", buf.d); + fprintf(out, "Content-Length: %zi\r\n", buf.d); fprintf(out, "\r\n"); fwrite(buf.b, 1, buf.d, out); fclose(out);