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.
This commit is contained in:
Max Kellermann 2023-05-15 20:59:58 +02:00
parent 181b96dd2d
commit f869593ac8
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -48,6 +48,7 @@ ver 0.24 (not yet released)
* remove Haiku support
* remove Boost dependency
* require libfmt 7 or later
* support libfmt 10
ver 0.23.12 (2023/01/17)
* input

View File

@ -20,5 +20,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());
}