X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fbuttontest.c;fp=lib%2Fexample%2Fbuttontest.c;h=76ba207cd8798329e7699e5fe7e31964699028fc;hb=6a12223ff824872fd1c8e35ea01f134b5664430f;hp=9f9f41b1bb8ecc6b3eea93b71582f12fc844c117;hpb=8dff6be716a54621909a1285ee05558bd24fbace;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);