X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fedittext.c;h=19b04a46ef8f5039d0fb86a9561e7e0a34791a55;hb=bdad407fb79c2f7be9f3603694ebdeadc645b52d;hp=463b888580bd5362c4a98edf409a81fab7a7f738;hpb=b3e9b46c48d5a270ef8fdbf81c0dc1e006ed44db;p=swftools.git diff --git a/lib/example/edittext.c b/lib/example/edittext.c index 463b888..19b04a4 100644 --- a/lib/example/edittext.c +++ b/lib/example/edittext.c @@ -121,7 +121,7 @@ int main (int argc,char ** argv) tag = swf_InsertTag(tag,ST_SHOWFRAME); tag = swf_InsertTag(tag,ST_END); - f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644); + f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644); if(swf_WriteSWF(f,&swf)<0) fprintf(stderr,"WriteSWF() failed.\n"); close(f);