use g_alloca() instead of alloca().

2003-07-28  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c (initial_sub_region)
	(combine_sub_region): use g_alloca() instead of alloca().
This commit is contained in:
Sven Neumann 2003-07-28 20:49:22 +00:00 committed by Sven Neumann
parent fb63bb2fe4
commit c217e77cb1
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-07-28 Sven Neumann <sven@gimp.org>
* app/paint-funcs/paint-funcs.c (initial_sub_region)
(combine_sub_region): use g_alloca() instead of alloca().
2003-07-28 Sven Neumann <sven@gimp.org>
* libgimpbase/Makefile.am (EXTRA_HEADERS): added gimpwin32-io.h.

View File

@ -4282,8 +4282,8 @@ initial_sub_region (struct initial_regions_struct *st,
InitialMode type;
/* use src->bytes + 1 since DISSOLVE always needs a buffer with alpha */
buf = alloca (MAX (src->w * (src->bytes + 1),
dest->w * dest->bytes));
buf = g_alloca (MAX (src->w * (src->bytes + 1),
dest->w * dest->bytes));
data = st->data;
opacity = st->opacity;
mode = st->mode;
@ -4445,9 +4445,9 @@ combine_sub_region (struct combine_regions_struct *st,
TileRowHint hint;
/* use src2->bytes + 1 since DISSOLVE always needs a buffer with alpha */
buf = alloca (MAX (MAX (src1->w * src1->bytes,
src2->w * (src2->bytes + 1)),
dest->w * dest->bytes));
buf = g_alloca (MAX (MAX (src1->w * src1->bytes,
src2->w * (src2->bytes + 1)),
dest->w * dest->bytes));
opacity = st->opacity;
mode = st->mode;