pike.git / src / modules / Image / encodings / xcf.c

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: xcf.c,v 1.56 2008/01/22 21:23:51 grubba Exp $ + || $Id$   */      #include "global.h"   #include "image_machine.h"      #include "pike_macros.h"   #include "object.h"   #include "module_support.h"   #include "interpret.h"   #include "object.h"
pike.git/src/modules/Image/encodings/xcf.c:1198:       for(l=0; l<(unsigned int)tiles->size; l++)    if(tiles->item[l].type != T_OBJECT)    Pike_error("Wrong type array argument 3 (tiles)\n");       if(a && ((i->xsize != a->xsize) || (i->ysize != a->ysize)))    Pike_error("Image and alpha objects are not identically sized.\n");       if(cmap)    { -  colortable = xalloc(sizeof(rgb_group)*image_colortable_size( cmap )); +  colortable = xalloc(sizeof(rgb_group)*image_colortable_size( cmap ) + RGB_VEC_PAD);    SET_ONERROR(err, free, colortable);    image_colortable_write_rgb( cmap, (unsigned char *)colortable );    }       x=y=0;       THREADS_ALLOW();    for(l=0; l<(unsigned)tiles->size; l++)    {    struct object *to = tiles->item[l].u.object;