summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-04 16:03:32 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-04 16:03:32 +0900
commit83512198b893845b25c4f5afd49dbea945809ead (patch)
tree1016765524201092fe7e417d710ddc3a5aec5374 /src/modules
parent574919ef31b1193a29dc5bb2562193f8d214e509 (diff)
evas - gif loader - fix technically "wrong" sizeof (doesnt cause a bug)
go from sizeof(char **) to sizeof(char *) ... effectively. so no real bug.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/loaders/gif/evas_image_load_gif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/evas/loaders/gif/evas_image_load_gif.c b/src/modules/evas/loaders/gif/evas_image_load_gif.c
index e62bf9e2df..acdf5ab8e1 100644
--- a/src/modules/evas/loaders/gif/evas_image_load_gif.c
+++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c
@@ -211,16 +211,16 @@ _decode_image(GifFileType *gif, DATA32 *data, int rowpix, int xin, int yin,
211 211
212 // build a blob of memory to have pointers to rows of pixels 212 // build a blob of memory to have pointers to rows of pixels
213 // AND store the decoded gif pixels (1 byte per pixel) as welll 213 // AND store the decoded gif pixels (1 byte per pixel) as welll
214 rows = malloc((h * sizeof(GifRowType *)) + (w * h * sizeof(GifPixelType))); 214 rows = malloc((h * sizeof(GifRowType)) + (w * h * sizeof(GifPixelType)));
215 if (!rows) goto on_error; 215 if (!rows) goto on_error;
216 216
217 // fill in the pointers at the start 217 // fill in the pointers at the start
218 for (yy = 0; yy < h; yy++) 218 for (yy = 0; yy < h; yy++)
219 { 219 {
220 rows[yy] = ((unsigned char *)rows) + (h * sizeof(GifRowType *)) + 220 rows[yy] = ((unsigned char *)rows) + (h * sizeof(GifRowType)) +
221 (yy * w * sizeof(GifPixelType)); 221 (yy * w * sizeof(GifPixelType));
222 } 222 }
223 223
224 // if give is interlaced, walk interlace pattern and decode into rows 224 // if give is interlaced, walk interlace pattern and decode into rows
225 if (gif->Image.Interlace) 225 if (gif->Image.Interlace)
226 { 226 {