X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.cpp;fp=server.cpp;h=ceb7f3d80b7c96db81fe4dda0d3bf0d16d15ce48;hp=be583e490d5223358d5aef68c8b826654b06e51d;hb=81253bd40254831a82a3d87c3ed7f2a3524f2f57;hpb=6a647d84c4a76fba4f91fcb75ab8185dc7628d67 diff --git a/server.cpp b/server.cpp index be583e4..ceb7f3d 100644 --- a/server.cpp +++ b/server.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -1069,7 +1070,7 @@ void Server::construct_stream_header(Client *client) response.append(buf); } else if (client->stream_pos_end != Client::STREAM_POS_NO_END) { char buf[64]; - snprintf(buf, sizeof(buf), "Content-length: %zu\r\n", client->stream_pos_end - client->stream_pos); + snprintf(buf, sizeof(buf), "Content-length: %" PRIu64 "\r\n", client->stream_pos_end - client->stream_pos); response.append(buf); } if (client->http_11) {