From dc32c94af95f49835f3a79b8fff6af5011453157 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 5 May 2003 21:15:08 +0000 Subject: Fix off-by-one allocation problem in gst_aasink_dither_get_type(). Original commit message from CVS: Fix off-by-one allocation problem in gst_aasink_dither_get_type(). Fixes #112329. --- ext/aalib/gstaasink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/aalib') diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c index 83600e37..6416b8da 100644 --- a/ext/aalib/gstaasink.c +++ b/ext/aalib/gstaasink.c @@ -155,7 +155,7 @@ gst_aasink_dither_get_type (void) i++; } - ditherers = g_new0(GEnumValue, i); + ditherers = g_new0(GEnumValue, i + 1); i = 0; while (aa_dithernames[i]) { -- cgit