X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fbuttontest.c;h=76ba207cd8798329e7699e5fe7e31964699028fc;hb=30b68dc4d9d219f77e73bbd1db59dd41fd27d1eb;hp=9f9f41b1bb8ecc6b3eea93b71582f12fc844c117;hpb=58ff679af70144555cdfdc2b9be9918696465de9;p=swftools.git diff --git a/lib/example/buttontest.c b/lib/example/buttontest.c index 9f9f41b..76ba207 100644 --- a/lib/example/buttontest.c +++ b/lib/example/buttontest.c @@ -132,7 +132,7 @@ int main (int argc,char ** argv) t = swf_InsertTag(t,ST_SHOWFRAME); t = swf_InsertTag(t,ST_END); - f = open("buttontest.swf",O_WRONLY|O_CREAT, 0644); + f = open("buttontest.swf",O_WRONLY|O_CREAT|O_BINARY, 0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);