From c3032bd672e412b1e20f18ef4d9e333c1a894566 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Thu, 30 Apr 2020 11:59:53 +0200 Subject: [PATCH] mu-store: enlarge buffer for strftime On Debian 9 random memory was printed with the original buffer size and valgrind complained about the use of uninitialized memory. --- lib/mu-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mu-store.cc b/lib/mu-store.cc index f6b876e6..d9141e91 100644 --- a/lib/mu-store.cc +++ b/lib/mu-store.cc @@ -1408,7 +1408,7 @@ mu_store_print_info (const MuStore *store, gboolean nocolor) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-y2k" - char tbuf[32]; + char tbuf[64]; strftime (tbuf, sizeof(tbuf), "%c", tstamp); #pragma GCC diagnostic pop