better loading partially written TARGA's, dont read over the end of the buffer and...
[blender-staging.git] / source / blender / imbuf / intern / IMB_targa.h
index 956bc512b977cfac133480335837d8448037e9ed..7759e4bc772adbce0f966ddee6e5aac8ee885f43 100644 (file)
@@ -41,7 +41,7 @@ struct ImBuf;
 
 int imb_is_a_targa(void *buf);
 
-struct ImBuf *imb_loadtarga(unsigned char *mem, int flags);
+struct ImBuf *imb_loadtarga(unsigned char *mem, int size, int flags);
 short imb_savetarga(struct ImBuf * ibuf, char *name, int flags);
 
 #endif