X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fjpegtest.c;fp=lib%2Fexample%2Fjpegtest.c;h=4e195d900bca87396277ac9d9775e4217242a9ab;hb=6a12223ff824872fd1c8e35ea01f134b5664430f;hp=3931814390a3784b933f2993d1fcef7c99fb3e20;hpb=8dff6be716a54621909a1285ee05558bd24fbace;p=swftools.git diff --git a/lib/example/jpegtest.c b/lib/example/jpegtest.c index 3931814..4e195d9 100644 --- a/lib/example/jpegtest.c +++ b/lib/example/jpegtest.c @@ -148,7 +148,7 @@ int main( int argc, char ** argv) // swf_WriteCGI(&swf); - f = open("jpegtest.swf",O_WRONLY|O_CREAT, 0644); + f = open("jpegtest.swf",O_WRONLY|O_CREAT||O_BINARY, 0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);