summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
commit8e275f286138db88140d1643d1008f130ba7f484 (patch)
treeeea120992ae5a9c2a341e3bee336620ecdc65a6f /src/gui
parentfd0df8f884336fc69bd0938453f9712c166f08c8 (diff)
Avoided stack overflows with empty dynamic parameters.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/panels/strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index 048fa28..8248c08 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -776,7 +776,7 @@ static void reload_strings_for_new_list_view(const GStringsPanel *panel, GtkStat
vmpa2_phys_to_string(addr, size, phys, NULL);
vmpa2_virt_to_string(addr, size, virt, NULL);
- portion = g_binary_portion_find_at_addr(portions, addr, (GdkRectangle []) { });
+ portion = g_binary_portion_find_at_addr(portions, addr, (GdkRectangle []) { { 0 } });
area = g_binary_portion_get_desc(portion);
g_object_unref(G_OBJECT(portion));