X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fexample%2Fshape1.c;fp=lib%2Fexample%2Fshape1.c;h=2520ce1ceac6677f1f1e00522dab84a419dd5a62;hb=6a12223ff824872fd1c8e35ea01f134b5664430f;hp=a65d0e40bc99b47d8d6653337813baa9a8825373;hpb=8dff6be716a54621909a1285ee05558bd24fbace;p=swftools.git diff --git a/lib/example/shape1.c b/lib/example/shape1.c index a65d0e4..2520ce1 100644 --- a/lib/example/shape1.c +++ b/lib/example/shape1.c @@ -103,7 +103,7 @@ int main (int argc,char ** argv) // write movie to file - f = open("shape1.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644); + f = open("shape1.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);