From 0fcdd011f5e26d637dbddc826206f4a4be820058 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 7 Dec 2012 20:01:05 -0800 Subject: Fix off by one error We increment i twice - which causes us to access memory past the end of the allocated array. Signed-off-by: Dirk Hohndel --- gtk-gui.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gtk-gui.c b/gtk-gui.c index 4836c98bc..7a4f108ad 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -1592,7 +1592,6 @@ static int fill_computer_list(GtkListStore *vendorstore, GtkListStore ***product dcl = dcl->next; } /* now add the empty product list in case no vendor is selected */ - i++; pstores[i] = gtk_list_store_new(1, G_TYPE_POINTER); if (*product_index == -1) *product_index = i; -- cgit v1.2.3-70-g09d2