]> skyeroc.xyz Git - dgamelaunch/commitdiff
Fix warnings
authorPasi Kallinen <paxed@alt.org>
Sat, 11 May 2019 10:03:49 +0000 (13:03 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 11 May 2019 10:03:49 +0000 (13:03 +0300)
dgamelaunch.c

index fc831a934c95a5cfd91ad6c0a28c83644ac43dda..e8c9ee029707227097aa912dc2af60dd4e4a294c 100644 (file)
@@ -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 */