X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fexample%2Fzlibtest.c;fp=lib%2Fexample%2Fzlibtest.c;h=816f17d924a73e2a21e6d503bacf028eeaa4b17a;hb=6a12223ff824872fd1c8e35ea01f134b5664430f;hp=967f86109d2a4839d4907ce3de0a466f69bc5908;hpb=8dff6be716a54621909a1285ee05558bd24fbace;p=swftools.git diff --git a/lib/example/zlibtest.c b/lib/example/zlibtest.c index 967f861..816f17d 100644 --- a/lib/example/zlibtest.c +++ b/lib/example/zlibtest.c @@ -199,7 +199,7 @@ int main ( int argc, char ** argv) // swf_WriteCGI(&swf); - f = open("zlibtest.swf",O_RDWR|O_CREAT|O_TRUNC,0644); + f = open("zlibtest.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);