summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-08-07 16:54:54 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-08-07 16:54:54 +0100
commite14151af42e8d312fcff09d19519c461250c5a1d (patch)
tree16fa2e489d8c71113ed286c968d6648e0a81fbd1
parentMove model support code in domain lib (diff)
downloadgentoobrowse-api-e14151af42e8d312fcff09d19519c461250c5a1d.tar.bz2
gentoobrowse-api-e14151af42e8d312fcff09d19519c461250c5a1d.tar.xz
gentoobrowse-api-e14151af42e8d312fcff09d19519c461250c5a1d.zip
Fix format string for file size
-rw-r--r--gentoobrowse-api/service/maintenancePackageTree.cpp2
1 files changed, 1 insertions, 1 deletions
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(