diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-08-07 16:54:54 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-08-07 16:54:54 +0100 |
commit | ddaf0c6d6da808eb6975858e4a51df4e800469ce (patch) | |
tree | 16fa2e489d8c71113ed286c968d6648e0a81fbd1 | |
parent | Move model support code in domain lib (diff) | |
download | gentoobrowse-api-0.4.5.1.tar.bz2 gentoobrowse-api-0.4.5.1.tar.xz gentoobrowse-api-0.4.5.1.zip |
Fix format string for file sizegentoobrowse-api-0.4.5.1
-rw-r--r-- | gentoobrowse-api/service/maintenancePackageTree.cpp | 2 |
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( |