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: font.c,v 1.86 2005/08/14 02:26:04 nilsson Exp $ + || $Id: font.c,v 1.87 2005/08/15 17:00:39 grubba Exp $   */      #include "global.h"
612:    else    img->ysize = this->height;    img->rgb.r=img->rgb.g=img->rgb.b=255; -  img->img=malloc(img->xsize*img->ysize*sizeof(rgb_group)); +  img->img=malloc(img->xsize*img->ysize*sizeof(rgb_group)+1);       if (!img->img) {    free_object(o);