From e14151af42e8d312fcff09d19519c461250c5a1d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Aug 2016 16:54:54 +0100 Subject: Fix format string for file size --- gentoobrowse-api/service/maintenancePackageTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentoobrowse-api/service/maintenancePackageTree.cpp b/gentoobrowse-api/service/maintenancePackageTree.cpp index 8d7ab72..50392fc 100644 --- a/gentoobrowse-api/service/maintenancePackageTree.cpp +++ b/gentoobrowse-api/service/maintenancePackageTree.cpp @@ -144,7 +144,7 @@ namespace Gentoo { d != boost::filesystem::recursive_directory_iterator(); d++) { if (boost::filesystem::is_regular_file(d->status()) && !boost::algorithm::ends_with(d->path().string(), ".ebuild")) { - auto len = snprintf(buf, BUFSIZ, "%s\t%ld\t%s\n", + auto len = snprintf(buf, BUFSIZ, "%s\t%ju\t%s\n", d->path().lexically_relative(tmp).c_str(), boost::filesystem::file_size(*d), boost::posix_time::to_iso_extended_string( -- cgit v1.2.3