From: Pasi Kallinen Date: Sat, 11 May 2019 10:03:49 +0000 (+0300) Subject: Fix warnings X-Git-Tag: v1.6.1-roc-dev~7^2 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=55bd7dce;p=dgamelaunch Fix warnings --- diff --git a/dgamelaunch.c b/dgamelaunch.c index fc831a9..e8c9ee0 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -917,7 +917,7 @@ get_timediff(time_t ctime, long seconds) else if (mins) snprintf(data, 10, "%ldm %lds", mins, secs); else if (secs > 4) - snprintf(data, 10, "%lds", secs); + snprintf(data, 30, "%lds", secs); else snprintf(data, 10, " "); return data; @@ -2080,7 +2080,7 @@ readfile (int nolock) fl.l_start = 0; fl.l_len = 0; - memset (buf, 1024, 0); + memset (buf, 0, 1024); /* read new stuff */