]> git.imager.perl.org - imager.git/commitdiff
was sizeof(int *)
authorTony Cook <tony@develop=help.com>
Mon, 14 May 2001 07:32:05 +0000 (07:32 +0000)
committerTony Cook <tony@develop=help.com>
Mon, 14 May 2001 07:32:05 +0000 (07:32 +0000)
gif.c

diff --git a/gif.c b/gif.c
index 41d6c6d6ff51e61d75a20f24a1e1b06ac018d429..e7c98c21ab786c59f29cccbf809ce5719b377a35 100644 (file)
--- a/gif.c
+++ b/gif.c
@@ -124,8 +124,8 @@ i_colortable_copy(int **colour_table, int *colours, ColorMapObject *colourmap) {
   if(colours) *colours = colourmapsize;
   if(!colour_table) return;
   
   if(colours) *colours = colourmapsize;
   if(!colour_table) return;
   
-  *colour_table = mymalloc(sizeof(int *) * colourmapsize * 3);
-  memset(*colour_table, 0, sizeof(int *) * colourmapsize * 3);
+  *colour_table = mymalloc(sizeof(int) * colourmapsize * 3);
+  memset(*colour_table, 0, sizeof(int) * colourmapsize * 3);
 
   for(q=0; q<colourmapsize; q++) {
     mapentry = &colourmap->Colors[q];
 
   for(q=0; q<colourmapsize; q++) {
     mapentry = &colourmap->Colors[q];