ports/mail/mu/patches/patch-lib_mu-store_cc

15 lines
456 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
fix time_t format specifier
Index: lib/mu-store.cc
--- lib/mu-store.cc.orig
+++ lib/mu-store.cc
2023-09-08 05:21:37 +00:00
@@ -699,7 +699,7 @@ Store::set_dirstamp(const std::string& path, time_t ts
2023-08-16 22:26:55 +00:00
{
std::array<char, 2 * sizeof(tstamp) + 1> data{};
const auto len = static_cast<size_t>(
- g_snprintf(data.data(), data.size(), "%zx", tstamp));
+ g_snprintf(data.data(), data.size(), "%lld", (long long)tstamp));
set_metadata(path, std::string{data.data(), len});
}