* src/progress.c (eta_to_human_short): Silence -Wformat-overflow

This commit is contained in:
Tim Rühsen 2020-02-19 14:44:21 +01:00
parent 8eda2da138
commit 21bb9d54cb

View File

@ -1427,7 +1427,7 @@ progress_handle_sigwinch (int sig _GL_UNUSED)
static const char *
eta_to_human_short (int secs, bool condensed)
{
static char buf[10]; /* 8 should be enough, but just in case */
static char buf[16]; /* enough space to be on the safe side */
static int last = -1;
const char *space = condensed ? "" : " ";