X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fshape1.c;h=d56f087dfb4fa110cb5c4f3ef76d948efb970b5c;hb=30ba7633c3e0be8ed075814f26075cf8171a7db9;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);