From: kramm Date: Fri, 4 Apr 2003 16:47:55 +0000 (+0000) Subject: O_BINARY X-Git-Tag: release-0-4-4~49 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=60dea7f912ca4da6854676ce3c5f70089561423e;p=swftools.git O_BINARY --- 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);