PKGBUILDs/community/swftools/swftools-const.patch

27 lines
1,017 B
Diff
Raw Normal View History

2009-10-10 02:15:33 +00:00
diff -Nur 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-13 02:25:32.000000000 +0300
+++ swftools-0.9.0/lib/pdf/GFXOutputDev.cc 2009-07-15 21:29:31.820117477 +0300
@@ -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 -Nur 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-04-13 02:25:32.000000000 +0300
+++ swftools-0.9.0/lib/pdf/pdf.cc 2009-07-15 21:56:19.013300153 +0300
@@ -458,7 +458,7 @@
i->filename = strdup(filename);
char*x = 0;
- if((x = strchr(filename, '|'))) {
+ if((x = (char *)strchr(filename, '|'))) {
*x = 0;
userPassword = x+1;
}