packages: swftools/swftools-gcc44.patch (NEW) - from altlinux

zbyniu zbyniu at pld-linux.org
Wed Dec 2 15:23:05 CET 2009


Author: zbyniu                       Date: Wed Dec  2 14:23:05 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- from altlinux

---- Files affected:
packages/swftools:
   swftools-gcc44.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/swftools/swftools-gcc44.patch
diff -u /dev/null packages/swftools/swftools-gcc44.patch:1.1
--- /dev/null	Wed Dec  2 15:23:05 2009
+++ packages/swftools/swftools-gcc44.patch	Wed Dec  2 15:22:59 2009
@@ -0,0 +1,26 @@
+diff -Naur swftools-0.9.0-orig/lib/pdf/GFXOutputDev.cc swftools-0.9.0/lib/pdf/GFXOutputDev.cc
+--- swftools-0.9.0-orig/lib/pdf/GFXOutputDev.cc	2009-04-12 23:25:32 +0000
++++ swftools-0.9.0/lib/pdf/GFXOutputDev.cc	2009-07-29 14:43:53 +0000
+@@ -2504,8 +2504,8 @@
+     memset(f, 0, sizeof(fontfile_t));
+     f->filename = filename;
+     int len = strlen(filename);
+-    char*r1 = strrchr(filename, '/');
+-    char*r2 = strrchr(filename, '\\');
++    const char*r1 = strrchr(filename, '/');
++    const char*r2 = strrchr(filename, '\\');
+     if(r2>r1)
+         r1 = r2;
+     if(r1) {
+diff -Naur swftools-0.9.0-orig/lib/pdf/pdf.cc swftools-0.9.0/lib/pdf/pdf.cc
+--- swftools-0.9.0-orig/lib/pdf/pdf.cc	2009-07-21 08:22:07 +0000
++++ swftools-0.9.0/lib/pdf/pdf.cc	2009-07-29 14:53:31 +0000
+@@ -447,7 +447,7 @@
+     i->filename = strdup(filename);
+ 
+     char*x = 0;
+-    if((x = strchr(filename, '|'))) {
++    if((x = (char*)strchr(filename, '|'))) {
+ 	*x = 0;
+ 	userPassword = x+1;
+     }
================================================================


More information about the pld-cvs-commit mailing list