From de982b4d3e9c7e6b6f100e383d647f0edc9321a3 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 12 Aug 2012 21:50:36 +0100 Subject: fix windows build format specifiers add install target for windows - creates installer rather than actually installing --- content/fetchers/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/fetchers/file.c') diff --git a/content/fetchers/file.c b/content/fetchers/file.c index e3bb63ea8..4deb93248 100644 --- a/content/fetchers/file.c +++ b/content/fetchers/file.c @@ -266,7 +266,7 @@ static void fetch_file_process_plain(struct fetch_file_context *ctx, return; } - fd = open(ctx->path, O_RDONLY); + fd = open(ctx->path, O_RDONLY | O_BINARY); if (fd < 0) { /* process errors as appropriate */ fetch_file_process_error(ctx, @@ -304,7 +304,7 @@ static void fetch_file_process_plain(struct fetch_file_context *ctx, goto fetch_file_process_aborted; /* content length */ - if (fetch_file_send_header(ctx, "Content-Length: %zd", fdstat->st_size)) + if (fetch_file_send_header(ctx, "Content-Length: %"SSIZET_FMT, fdstat->st_size)) goto fetch_file_process_aborted; /* create etag */ -- cgit v1.2.3