X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Ftranstest.c;h=0e835be0a74087ca19c35ae510208fbc095ae3ec;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hp=56f5180105036e3861306efcee32a45f0e8b5ad9;hpb=58ff679af70144555cdfdc2b9be9918696465de9;p=swftools.git diff --git a/lib/example/transtest.c b/lib/example/transtest.c index 56f5180..0e835be 100644 --- a/lib/example/transtest.c +++ b/lib/example/transtest.c @@ -151,7 +151,7 @@ int main (int argc,char ** argv) // swf_WriteCGI(&swf); - f = open("transtest.swf",O_RDWR|O_CREAT|O_TRUNC,0644); + f = open("transtest.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);