Sophie

Sophie

distrib > Mageia > 3 > x86_64 > by-pkgid > 3656218ab1dac40e8f409f0b49b95323 > files > 1

htmldoc-1.8.27-14.mga3.src.rpm


 https://bugs.gentoo.org/attachment.cgi?id=199846

diff -Naurp htmldoc-1.8.27/htmldoc/htmllib.cxx htmldoc-1.8.27.oden/htmldoc/htmllib.cxx
--- htmldoc-1.8.27/htmldoc/htmllib.cxx	2006-06-07 19:43:52.000000000 +0200
+++ htmldoc-1.8.27.oden/htmldoc/htmllib.cxx	2009-09-11 15:38:00.000000000 +0200
@@ -2139,7 +2139,7 @@ htmlLoadFontWidths(void)
 	  * assigned charset...
 	  */
 
-          if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%s", &width, glyph) != 2)
+          if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%63s", &width, glyph) != 2)
 	    continue;
 
           for (ch = 0; ch < 256; ch ++)
diff -Naurp htmldoc-1.8.27/htmldoc/ps-pdf.cxx htmldoc-1.8.27.oden/htmldoc/ps-pdf.cxx
--- htmldoc-1.8.27/htmldoc/ps-pdf.cxx	2006-08-01 18:58:50.000000000 +0200
+++ htmldoc-1.8.27.oden/htmldoc/ps-pdf.cxx	2009-09-11 15:38:00.000000000 +0200
@@ -12512,7 +12512,7 @@ write_type1(FILE       *out,		/* I - Fil
 	  * assigned charset...
 	  */
 
-	  if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%s", &width, glyph) != 2)
+	  if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%63s", &width, glyph) != 2)
 	    continue;
 
 	  for (ch = 0; ch < 256; ch ++)
diff -Naurp htmldoc-1.8.27/htmldoc/util.cxx htmldoc-1.8.27.oden/htmldoc/util.cxx
--- htmldoc-1.8.27/htmldoc/util.cxx	2005-04-24 21:20:32.000000000 +0200
+++ htmldoc-1.8.27.oden/htmldoc/util.cxx	2009-09-11 15:38:00.000000000 +0200
@@ -484,7 +484,7 @@ set_page_size(const char *size)	/* I - P
     PageWidth  = 595;
     PageLength = 792;
   }
-  else if (sscanf(size, "%fx%f%s", &width, &length, units) >= 2)
+  else if (sscanf(size, "%fx%f%254s", &width, &length, units) >= 2)
   {
    /*
     * Custom size...