From 8cf7f44047224f00ffa611ee05a698e8f41e0db6 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 21 Dec 2004 18:49:31 +0000 Subject: Eeek! last minute error. Commit of dec 9... still uses fopen(name, "ab") instead of "wb" Caused targa and bmp files to write wrong on save-over, appended instead. --- source/blender/imbuf/intern/targa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/imbuf/intern/targa.c') diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c index a20c9917c06..40e1b60d36c 100644 --- a/source/blender/imbuf/intern/targa.c +++ b/source/blender/imbuf/intern/targa.c @@ -290,7 +290,7 @@ short imb_savetarga(struct ImBuf * ibuf, char *name, int flags) if (ibuf->depth==32) { buf[17] |= 0x08; } - fildes = fopen(name,"ab"); + fildes = fopen(name,"wb"); if (fwrite(buf, 1, 18,fildes) != 18) return (0); -- cgit v1.2.3