From a8042885acfe0a17e493ad575520c4cb9adcc63c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 May 2023 20:59:58 +0200 Subject: [PATCH] TimePrint: minor fixup for libfmt 10 libfmt version 10 has difficulties formatting a `StringBuffer`, and we need to help it by explicitly invoking the `c_str()` method. --- NEWS | 1 + src/TimePrint.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0825c118e..41c2a23fe 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ ver 0.23.13 (not yet released) * Linux - shut down if parent process dies in --no-daemon mode - determine systemd unit directories via pkg-config +* support libfmt 10 ver 0.23.12 (2023/01/17) * input diff --git a/src/TimePrint.cxx b/src/TimePrint.cxx index 6f8cca631..44f895e69 100644 --- a/src/TimePrint.cxx +++ b/src/TimePrint.cxx @@ -36,5 +36,5 @@ time_print(Response &r, const char *name, return; } - r.Fmt(FMT_STRING("{}: {}\n"), name, s); + r.Fmt(FMT_STRING("{}: {}\n"), name, s.c_str()); }