84dde3
--- unzip60/list.c	
84dde3
+++ unzip60/list.c	
84dde3
@@ -97,7 +97,7 @@ int list_files(__G)    /* return PK-type
84dde3
 {
84dde3
     int do_this_file=FALSE, cfactor, error, error_in_archive=PK_COOL;
84dde3
 #ifndef WINDLL
84dde3
-    char sgn, cfactorstr[13];
84dde3
+    char sgn, cfactorstr[1+10+1+1];	/* <sgn><int>%NUL */
84dde3
     int longhdr=(uO.vflag>1);
84dde3
 #endif
84dde3
     int date_format;
84dde3
@@ -389,9 +389,9 @@ int list_files(__G)    /* return PK-type
84dde3
             }
84dde3
 #else /* !WINDLL */
84dde3
             if (cfactor == 100)
84dde3
-                sprintf(cfactorstr, LoadFarString(CompFactor100));
84dde3
+                snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactor100));
84dde3
             else
84dde3
-                sprintf(cfactorstr, LoadFarString(CompFactorStr), sgn, cfactor);
84dde3
+                snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactorStr), sgn, cfactor);
84dde3
             if (longhdr)
84dde3
                 Info(slide, 0, ((char *)slide, LoadFarString(LongHdrStats),
84dde3
                   FmZofft(G.crec.ucsize, "8", "u"), methbuf,
84dde3
@@ -471,9 +471,9 @@ int list_files(__G)    /* return PK-type
84dde3
 
84dde3
 #else /* !WINDLL */
84dde3
         if (cfactor == 100)
84dde3
-            sprintf(cfactorstr, LoadFarString(CompFactor100));
84dde3
+            snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactor100));
84dde3
         else
84dde3
-            sprintf(cfactorstr, LoadFarString(CompFactorStr), sgn, cfactor);
84dde3
+            snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactorStr), sgn, cfactor);
84dde3
         if (longhdr) {
84dde3
             Info(slide, 0, ((char *)slide, LoadFarString(LongFileTrailer),
84dde3
               FmZofft(tot_ucsize, "8", "u"), FmZofft(tot_csize, "8", "u"),