Branch: Tag:

2010-10-10

2010-10-10 21:56:21 by Martin Stjernholm <mast@lysator.liu.se>

Added extra padding in valgrind mode to work around valgrind false alarms.

2:   || 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"
1205:       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 );    }