X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fpdf2swf.cc;h=739deb848e9da1b0d9d6c6c72802e7b5df81dbdd;hb=11ad4fc1ce7b6582c8dbf1a99df89a1d5d25a0de;hp=df3847726b7874153dccf0c3c6f44dea4e4ce94f;hpb=4e93152cac63e2e1912085843f44fe9f38470ce9;p=swftools.git diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index df38477..739deb8 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -502,22 +502,22 @@ int main(int argn, char *argv[]) } if(viewer && !preloader) { - systemf("swfcombine `swfdump -XY %s` %s viewport=%s -o %s", + systemf("swfcombine `swfdump -XY \"%s\"` \"%s\" viewport=\"%s\" -o \"%s\"", outputname, viewer, outputname, outputname); if(!system_quiet) printf("\n"); } if(preloader && !viewer) { msg(" --preloader option without --viewer option doesn't make very much sense."); - ret = systemf("swfcombine `swfdump -r %s` %s/PreLoaderTemplate.swf loader=%s movie=%s -o %s", + ret = systemf("swfcombine `swfdump -r \"%s\"` %s/PreLoaderTemplate.swf loader=\"%s\" movie=\"%s\" -o \"%s\"", preloader, SWFDIR, preloader, outputname, outputname); if(!system_quiet) printf("\n"); } if(preloader && viewer) { - systemf("swfcombine %s viewport=%s -o __tmp__.swf", + systemf("swfcombine \"%s\" viewport=%s -o __tmp__.swf", viewer, outputname, outputname); - systemf("swfcombine `swfdump -XY %s` `swfdump -r %s` %s/PreLoaderTemplate.swf loader=%s movie=__tmp__.swf -o %s", + systemf("swfcombine `swfdump -XY \"%s\"` `swfdump -r \"%s\"` %s/PreLoaderTemplate.swf loader=%s movie=__tmp__.swf -o \"%s\"", outputname, preloader, SWFDIR, preloader, outputname); systemf("rm __tmp__.swf"); }