Branch: Tag:

2005-08-15

2005-08-15 17:00:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Restored all +1's in {m,x}alloc().
They are there for a reason...

Rev: src/modules/Image/blit.c:1.59
Rev: src/modules/Image/colortable.c:1.125
Rev: src/modules/Image/dct.c:1.29
Rev: src/modules/Image/font.c:1.87
Rev: src/modules/Image/image.c:1.225
Rev: src/modules/Image/matrix.c:1.51
Rev: src/modules/Image/pattern.c:1.33
Rev: src/modules/Image/search.c:1.33

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: dct.c,v 1.28 2005/08/14 02:25:46 nilsson Exp $ + || $Id: dct.c,v 1.29 2005/08/15 17:00:39 grubba Exp $   */      /*
88:    DO_NOT_WARN((unsigned long)(sizeof(rgb_group)*THIS->xsize*THIS->ysize+1)));   #endif    -  area=xalloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize); +  area=xalloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize+1);    -  if (!(costbl=malloc(sizeof(double)*THIS->xsize))) +  if (!(costbl=malloc(sizeof(double)*THIS->xsize+1)))    {    free(area);    resource_error(NULL,0,0,"memory",0,"Out of memory.\n");