diff options
Diffstat (limited to 'Userland/Services/WebServer/Client.cpp')
-rw-r--r-- | Userland/Services/WebServer/Client.cpp | 3 |
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> </td>"); - builder.appendf("<td>%10lld</td><td> </td>", st.st_size); + builder.appendf("<td>%10" PRIi64 "</td><td> </td>", st.st_size); builder.append("<td>"); builder.append(Core::DateTime::from_timestamp(st.st_mtime).to_string()); builder.append("</td>"); |