X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2Fpdf.cc;h=3e6a5941499af03c65dd2077b0214d68fcf06fdc;hb=0e9d27093c3e6e8e316fbc08bb9d422d74da2fd1;hp=a0d9c6a36158a3da3640da17e3b7ab9123cd923c;hpb=bcdeea968b4e4ec2cfdfaa21a7f6151a875fd5ce;p=swftools.git diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index a0d9c6a..3e6a594 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -1,3 +1,5 @@ +#include +#include #include "../gfxdevice.h" #include "../gfxsource.h" #include "../devices/rescale.h" @@ -447,7 +449,7 @@ static gfxdocument_t*pdf_open(gfxsource_t*src, const char*filename) i->filename = strdup(filename); char*x = 0; - if((x = strchr(filename, '|'))) { + if((x = strchr((char*)filename, '|'))) { *x = 0; userPassword = x+1; }