From 1e2f9219883452ef7da37c3c984b3e3d2939656b Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 28 Jul 2024 16:40:09 +0200 Subject: Fix pedantic warnings Reviewed-by: dogma --- dpi/downloads.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dpi/downloads.cc') diff --git a/dpi/downloads.cc b/dpi/downloads.cc index 90f7b76d..ee805de9 100644 --- a/dpi/downloads.cc +++ b/dpi/downloads.cc @@ -679,11 +679,11 @@ static void secs2timestr(int et, char *str) eh = et / 3600; em = (et % 3600) / 60; es = et % 60; if (eh == 0) { if (em == 0) - snprintf(str, 8, "%ds", es); + snprintf(str, 16, "%ds", es); else - snprintf(str, 8, "%dm%ds", em, es); + snprintf(str, 16, "%dm%ds", em, es); } else { - snprintf(str, 8, "%dh%dm", eh, em); + snprintf(str, 16, "%dh%dm", eh, em); } } -- cgit v1.2.3