Blame SOURCES/cups-filters-format-mismatch.patch

b95efc
diff -up cups-filters-1.0.35/filter/pdfutils.c.format-mismatch cups-filters-1.0.35/filter/pdfutils.c
b95efc
--- cups-filters-1.0.35/filter/pdfutils.c.format-mismatch	2013-10-01 12:22:16.244383288 +0100
b95efc
+++ cups-filters-1.0.35/filter/pdfutils.c	2013-10-01 12:24:05.510864420 +0100
b95efc
@@ -242,7 +242,7 @@ void pdfOut_finish_pdf(pdfOut *pdf) // {
b95efc
                     "%010d 65535 f \n",
b95efc
                     0,pdf->xrefsize+1,0);
b95efc
   for (iA=0;iA<pdf->xrefsize;iA++) {
b95efc
-    pdfOut_printf(pdf,"%010d 00000 n \n",
b95efc
+    pdfOut_printf(pdf,"%010ld 00000 n \n",
b95efc
                       pdf->xref[iA]);
b95efc
   }
b95efc
   pdfOut_printf(pdf,"trailer\n"
b95efc
@@ -347,7 +347,7 @@ int pdfOut_write_font(pdfOut *pdf,EMB_PA
b95efc
   const int l0_obj=pdfOut_add_xref(pdf);
b95efc
   assert(l0_obj==ff_obj+1);
b95efc
   pdfOut_printf(pdf,"%d 0 obj\n"
b95efc
-                    "%d\n"
b95efc
+                    "%ld\n"
b95efc
                     "endobj\n"
b95efc
                     ,l0_obj,streamsize);
b95efc
 
b95efc
diff -up cups-filters-1.0.35/filter/pdfutils.h.format-mismatch cups-filters-1.0.35/filter/pdfutils.h
b95efc
--- cups-filters-1.0.35/filter/pdfutils.h.format-mismatch	2012-06-22 17:10:47.000000000 +0100
b95efc
+++ cups-filters-1.0.35/filter/pdfutils.h	2013-10-01 12:07:07.393378641 +0100
b95efc
@@ -42,7 +42,8 @@ void pdfOut_finish_pdf(pdfOut *pdf);
b95efc
 /* General output routine for our pdf.
b95efc
  * Keeps track of characters actually written out
b95efc
  */
b95efc
-void pdfOut_printf(pdfOut *pdf,const char *fmt,...);
b95efc
+void pdfOut_printf(pdfOut *pdf,const char *fmt,...)
b95efc
+  __attribute__((format(printf, 2, 3)));
b95efc
 
b95efc
 /* write out an escaped pdf string: e.g.  (Text \(Test\)\n)
b95efc
  * >len==-1: use strlen(str) 
b95efc
diff -up cups-filters-1.0.35/filter/texttopdf.c.format-mismatch cups-filters-1.0.35/filter/texttopdf.c
b95efc
--- cups-filters-1.0.35/filter/texttopdf.c.format-mismatch	2013-10-01 12:24:41.218021702 +0100
b95efc
+++ cups-filters-1.0.35/filter/texttopdf.c	2013-10-01 12:24:41.863024579 +0100
b95efc
@@ -250,7 +250,7 @@ WritePage(void)
b95efc
   int len_obj=pdfOut_add_xref(pdf);
b95efc
   assert(len_obj==content+1);
b95efc
   pdfOut_printf(pdf,"%d 0 obj\n"
b95efc
-                    "%d\n"
b95efc
+                    "%ld\n"
b95efc
                     "endobj\n",
b95efc
                     len_obj,size);
b95efc
 
b95efc
diff -up cups-filters-1.0.35/fontembed/dynstring.h.format-mismatch cups-filters-1.0.35/fontembed/dynstring.h
b95efc
--- cups-filters-1.0.35/fontembed/dynstring.h.format-mismatch	2012-06-22 17:10:47.000000000 +0100
b95efc
+++ cups-filters-1.0.35/fontembed/dynstring.h	2013-10-01 12:07:07.393378641 +0100
b95efc
@@ -9,7 +9,8 @@ typedef struct {
b95efc
 int dyn_init(DYN_STRING *ds,int reserve_size); // -1 on error
b95efc
 void dyn_free(DYN_STRING *ds);
b95efc
 int dyn_ensure(DYN_STRING *ds,int free_space);
b95efc
-int dyn_printf(DYN_STRING *ds,const char *fmt,...); // appends
b95efc
+int dyn_printf(DYN_STRING *ds,const char *fmt,...) // appends
b95efc
+  __attribute__((format(printf, 2, 3)));
b95efc
 
b95efc
 #endif
b95efc
 
b95efc
diff -up cups-filters-1.0.35/fontembed/embed_sfnt.c.format-mismatch cups-filters-1.0.35/fontembed/embed_sfnt.c
b95efc
--- cups-filters-1.0.35/fontembed/embed_sfnt.c.format-mismatch	2013-10-01 12:25:24.164210823 +0100
b95efc
+++ cups-filters-1.0.35/fontembed/embed_sfnt.c	2013-10-01 12:25:39.727279359 +0100
b95efc
@@ -519,7 +519,7 @@ int emb_otf_ps(OTF_FILE *otf,unsigned sh
b95efc
     free(ds.buf);
b95efc
     return -1;
b95efc
   }
b95efc
-  dyn_printf(&ds,"%!PS-TrueTypeFont-%d-%d\n",
b95efc
+  dyn_printf(&ds,"%%!PS-TrueTypeFont-%d-%d\n",
b95efc
                  otf->version,get_ULONG(head+4));
b95efc
   const int bbxmin=get_SHORT(head+36)*1000/otf->unitsPerEm,
b95efc
             bbymin=get_SHORT(head+38)*1000/otf->unitsPerEm,