Blame SOURCES/unzip-6.0-format-secure.patch

90b9a6
diff --git a/extract.c b/extract.c
90b9a6
index eeb2f57..a0a4929 100644
90b9a6
--- a/extract.c
90b9a6
+++ b/extract.c
90b9a6
@@ -472,8 +472,8 @@ int extract_or_test_files(__G)    /* return PK-type error code */
90b9a6
                      */
90b9a6
                     Info(slide, 0x401, ((char *)slide,
90b9a6
                       LoadFarString(CentSigMsg), j + blknum*DIR_BLKSIZ + 1));
90b9a6
-                    Info(slide, 0x401, ((char *)slide,
90b9a6
-                      LoadFarString(ReportMsg)));
90b9a6
+                    Info(slide, 0x401,
90b9a6
+                         ((char *)slide,"%s", LoadFarString(ReportMsg)));
90b9a6
                     error_in_archive = PK_BADERR;
90b9a6
                 }
90b9a6
                 reached_end = TRUE;     /* ...so no more left to do */
90b9a6
@@ -752,8 +752,8 @@ int extract_or_test_files(__G)    /* return PK-type error code */
90b9a6
 
90b9a6
 #ifndef SFX
90b9a6
     if (no_endsig_found) {                      /* just to make sure */
90b9a6
-        Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg)));
90b9a6
-        Info(slide, 0x401, ((char *)slide, LoadFarString(ReportMsg)));
90b9a6
+        Info(slide, 0x401, ((char *)slide,"%s", LoadFarString(EndSigMsg)));
90b9a6
+        Info(slide, 0x401, ((char *)slide,"%s", LoadFarString(ReportMsg)));
90b9a6
         if (!error_in_archive)       /* don't overwrite stronger error */
90b9a6
             error_in_archive = PK_WARN;
90b9a6
     }
90b9a6
diff --git a/list.c b/list.c
90b9a6
index 15e0011..f7359c3 100644
90b9a6
--- a/list.c
90b9a6
+++ b/list.c
90b9a6
@@ -181,7 +181,7 @@ int list_files(__G)    /* return PK-type error code */
90b9a6
                 Info(slide, 0x401,
90b9a6
                      ((char *)slide, LoadFarString(CentSigMsg), j));
90b9a6
                 Info(slide, 0x401,
90b9a6
-                     ((char *)slide, LoadFarString(ReportMsg)));
90b9a6
+                     ((char *)slide,"%s", LoadFarString(ReportMsg)));
90b9a6
                 return PK_BADERR;   /* sig not found */
90b9a6
             }
90b9a6
         }
90b9a6
@@ -507,7 +507,8 @@ int list_files(__G)    /* return PK-type error code */
90b9a6
             && (!G.ecrec.is_zip64_archive)
90b9a6
             && (memcmp(G.sig, end_central_sig, 4) != 0)
90b9a6
            ) {          /* just to make sure again */
90b9a6
-            Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg)));
90b9a6
+            Info(slide, 0x401, 
90b9a6
+                 ((char *)slide,"%s", LoadFarString(EndSigMsg)));
90b9a6
             error_in_archive = PK_WARN;   /* didn't find sig */
90b9a6
         }
90b9a6
 
90b9a6
@@ -591,7 +592,7 @@ int get_time_stamp(__G__ last_modtime, nmember)  /* return PK-type error code */
90b9a6
                 Info(slide, 0x401,
90b9a6
                      ((char *)slide, LoadFarString(CentSigMsg), j));
90b9a6
                 Info(slide, 0x401,
90b9a6
-                     ((char *)slide, LoadFarString(ReportMsg)));
90b9a6
+                     ((char *)slide,"%s", LoadFarString(ReportMsg)));
90b9a6
                 return PK_BADERR;   /* sig not found */
90b9a6
             }
90b9a6
         }
90b9a6
@@ -674,7 +675,7 @@ int get_time_stamp(__G__ last_modtime, nmember)  /* return PK-type error code */
90b9a6
   ---------------------------------------------------------------------------*/
90b9a6
 
90b9a6
     if (memcmp(G.sig, end_central_sig, 4)) {    /* just to make sure again */
90b9a6
-        Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg)));
90b9a6
+        Info(slide, 0x401, ((char *)slide,"%s", LoadFarString(EndSigMsg)));
90b9a6
         error_in_archive = PK_WARN;
90b9a6
     }
90b9a6
     if (*nmember == 0L && error_in_archive <= PK_WARN)
90b9a6
diff --git a/zipinfo.c b/zipinfo.c
90b9a6
index 6e22cc8..ac5c61b 100644
90b9a6
--- a/zipinfo.c
90b9a6
+++ b/zipinfo.c
90b9a6
@@ -771,7 +771,7 @@ int zipinfo(__G)   /* return PK-type error code */
90b9a6
                 Info(slide, 0x401,
90b9a6
                      ((char *)slide, LoadFarString(CentSigMsg), j));
90b9a6
                 Info(slide, 0x401,
90b9a6
-                     ((char *)slide, LoadFarString(ReportMsg)));
90b9a6
+                     ((char *)slide,"%s", LoadFarString(ReportMsg)));
90b9a6
                 error_in_archive = PK_BADERR;   /* sig not found */
90b9a6
                 break;
90b9a6
             }
90b9a6
@@ -960,7 +960,8 @@ int zipinfo(__G)   /* return PK-type error code */
90b9a6
             && (!G.ecrec.is_zip64_archive)
90b9a6
             && (memcmp(G.sig, end_central_sig, 4) != 0)
90b9a6
            ) {          /* just to make sure again */
90b9a6
-            Info(slide, 0x401, ((char *)slide, LoadFarString(EndSigMsg)));
90b9a6
+            Info(slide, 0x401, 
90b9a6
+                 ((char *)slide,"%s", LoadFarString(EndSigMsg)));
90b9a6
             error_in_archive = PK_WARN;   /* didn't find sig */
90b9a6
         }
90b9a6