Fix warnings

This commit is contained in:
Pasi Kallinen 2019-05-11 13:03:49 +03:00
parent f9bf041b50
commit 55bd7dce01
1 changed files with 2 additions and 2 deletions

View File

@ -917,7 +917,7 @@ get_timediff(time_t ctime, long seconds)
else if (mins) else if (mins)
snprintf(data, 10, "%ldm %lds", mins, secs); snprintf(data, 10, "%ldm %lds", mins, secs);
else if (secs > 4) else if (secs > 4)
snprintf(data, 10, "%lds", secs); snprintf(data, 30, "%lds", secs);
else else
snprintf(data, 10, " "); snprintf(data, 10, " ");
return data; return data;
@ -2080,7 +2080,7 @@ readfile (int nolock)
fl.l_start = 0; fl.l_start = 0;
fl.l_len = 0; fl.l_len = 0;
memset (buf, 1024, 0); memset (buf, 0, 1024);
/* read new stuff */ /* read new stuff */