mirror of https://github.com/djcb/mu.git
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.
This commit is contained in:
parent
caa92af9fb
commit
c3032bd672
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue