summaryrefslogtreecommitdiff
path: root/Userland/Services/WebServer
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-02 00:00:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-03 08:42:39 +0200
commitb613817bcaada76f75289129e4987eafdaff6d87 (patch)
tree51978a2c44f29e0b730773e83d3eb368dd4a597e /Userland/Services/WebServer
parentfdbe66a7b4b3fec0beba0eac8b78bf29841a5e9c (diff)
downloadserenity-b613817bcaada76f75289129e4987eafdaff6d87.zip
Userland: Fix 64-bit portability issues
Diffstat (limited to 'Userland/Services/WebServer')
-rw-r--r--Userland/Services/WebServer/Client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/WebServer/Client.cpp b/Userland/Services/WebServer/Client.cpp
index a26bd251b8..4a24eaf1f8 100644
--- a/Userland/Services/WebServer/Client.cpp
+++ b/Userland/Services/WebServer/Client.cpp
@@ -17,6 +17,7 @@
#include <LibCore/FileStream.h>
#include <LibCore/MimeData.h>
#include <LibHTTP/HttpRequest.h>
+#include <inttypes.h>
#include <stdio.h>
#include <sys/stat.h>
#include <time.h>
@@ -220,7 +221,7 @@ void Client::handle_directory_listing(const String& requested_path, const String
builder.append(escape_html_entities(name));
builder.append("</a></td><td>&nbsp;</td>");
- builder.appendf("<td>%10lld</td><td>&nbsp;</td>", st.st_size);
+ builder.appendf("<td>%10" PRIi64 "</td><td>&nbsp;</td>", st.st_size);
builder.append("<td>");
builder.append(Core::DateTime::from_timestamp(st.st_mtime).to_string());
builder.append("</td>");