Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 0a2702319be00ce794d0f083007d53a8 > files > 2

p7zip-9.04-3mdv2010.1.src.rpm

diff -p -up p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp~ p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp
--- p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp~	2009-05-30 22:19:18.000000000 +0200
+++ p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaAlone.cpp	2010-02-14 16:03:38.000000000 +0100
@@ -461,7 +461,7 @@ int main2(int n, const char *args[])
       Byte b = Byte(fileSize >> (8 * i));
       if (outStream->Write(&b, 1, 0) != S_OK)
       {
-        fprintf(stderr, kWriteError);
+        fprintf(stderr, "%s", kWriteError);
         return 1;
       }
     }
@@ -486,7 +486,7 @@ int main2(int n, const char *args[])
     Byte header[kPropertiesSize + 8];
     if (ReadStream_FALSE(inStream, header, kPropertiesSize + 8) != S_OK)
     {
-      fprintf(stderr, kReadError);
+      fprintf(stderr, "%s", kReadError);
       return 1;
     }
     if (decoderSpec->SetDecoderProperties2(header, kPropertiesSize) != S_OK)
diff -p -up p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaBenchCon.cpp~ p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaBenchCon.cpp
--- p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaBenchCon.cpp~	2008-08-14 11:11:28.000000000 +0200
+++ p7zip_9.04/CPP/7zip/Compress/LZMA_Alone/LzmaBenchCon.cpp	2010-02-14 16:04:11.000000000 +0100
@@ -142,7 +142,7 @@ HRESULT CBenchCallback::SetDecodeResult(
   if (final)
   {
     UInt64 rating = GetDecompressRating(info.GlobalTime, info.GlobalFreq, info.UnpackSize, info.PackSize, info.NumIterations);
-    fprintf(f, kSep);
+    fprintf(f, "%s", kSep);
     CBenchInfo info2 = info;
     info2.UnpackSize *= info2.NumIterations;
     info2.PackSize *= info2.NumIterations;
@@ -201,14 +201,14 @@ HRESULT LzmaBenchCon(
   {
     fprintf(f, "   Speed Usage    R/U Rating");
     if (j == 0)
-      fprintf(f, kSep);
+      fprintf(f, "%s", kSep);
   }
   fprintf(f, "\n   ");
   for (j = 0; j < 2; j++)
   {
     fprintf(f, "    KB/s     %%   MIPS   MIPS");
     if (j == 0)
-      fprintf(f, kSep);
+      fprintf(f, "%s", kSep);
   }
   fprintf(f, "\n\n");
   for (UInt32 i = 0; i < numIterations; i++)