mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
26 lines
1,017 B
Diff
26 lines
1,017 B
Diff
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;
|
|
}
|