diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-07 20:01:05 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-07 20:01:05 -0800 |
commit | 0fcdd011f5e26d637dbddc826206f4a4be820058 (patch) | |
tree | 975d16c82685dbf119d17d28e05ddb8b390a6663 /gtk-gui.c | |
parent | 407d4dd4aa50257bcf0b1dfba0474d372dbe09cd (diff) | |
download | subsurface-0fcdd011f5e26d637dbddc826206f4a4be820058.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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; |