Signed-off-by: Amadeusz Sławiński <[email protected]>
---
 wrlib/load_gif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wrlib/load_gif.c b/wrlib/load_gif.c
index acbf7da..7a6cfc7 100644
--- a/wrlib/load_gif.c
+++ b/wrlib/load_gif.c
@@ -121,7 +121,7 @@ RImage *RLoadGIF(const char *file, int index)
                                }
                        }
 
-                       buffer = malloc(width * sizeof(GifColorType));
+                       buffer = malloc(width * sizeof(GifPixelType));
                        if (!buffer) {
                                RErrorCode = RERR_NOMEMORY;
                                goto bye;
-- 
1.9.3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to