X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfextract.c;h=d7cbf100411673990c392eb82ba62869533779c0;hp=35af23f7836f4322e585b12679c4151d03deeacf;hb=60dea7f912ca4da6854676ce3c5f70089561423e;hpb=18d6d6b2fd963ccd10792ecd25a7ce9f372fd865 diff --git a/src/swfextract.c b/src/swfextract.c index 35af23f..d7cbf10 100644 --- a/src/swfextract.c +++ b/src/swfextract.c @@ -363,7 +363,7 @@ void extractTag(SWF*swf, char*filename) } desttag = swf_InsertTag(desttag,ST_END); - f = open(filename, O_TRUNC|O_WRONLY|O_CREAT, 0644); + f = open(filename, O_TRUNC|O_WRONLY|O_CREAT|O_BINARY, 0644); if FAILED(swf_WriteSWF(f,&newswf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);