Branch: Tag:

2006-03-08

2006-03-08 01:21:35 by Peter Bortas <zino@lysator.liu.se>

Fixed of by one error that in worst case would index outside static array.

Rev: src/modules/Image/layers.c:1.98

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: layers.c,v 1.97 2004/04/18 03:30:02 nilsson Exp $ + || $Id: layers.c,v 1.98 2006/03/08 01:21:35 peter Exp $   */      /*
15:      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.97 2004/04/18 03:30:02 nilsson Exp $"); + RCSID("$Id: layers.c,v 1.98 2006/03/08 01:21:35 peter Exp $");      #include "image_machine.h"   
1103:    return;    }    -  Pike_fatal("illegal mode: %p\n", (void *)layer_mode[i].func); +  Pike_fatal("illegal mode: %p\n", (void *)layer_mode[i-1].func);   }      static void image_layer_available_modes(INT32 args)