X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fshape1.c;h=d56f087dfb4fa110cb5c4f3ef76d948efb970b5c;hb=17c5ae9f9deae1af8c309681bcf8b017046596bc;hp=e845ae91841c0dcb2b2bb99ccd8b4c2b4d9f24dd;hpb=dcd54b8f52f1003b9723ea1aaeb6b1226e04e675;p=swftools.git diff --git a/lib/example/shape1.c b/lib/example/shape1.c index e845ae9..d56f087 100644 --- a/lib/example/shape1.c +++ b/lib/example/shape1.c @@ -93,7 +93,7 @@ int main (int argc,char ** argv) // write movie to file - f = open("shape1.swf",O_WRONLY|O_CREAT, 0644); + f = open("shape1.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);