From 35a56f5c5f6a96495207dd48cfbeddff4c5b0eeb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 10 Feb 2016 00:12:14 +0100 Subject: [PATCH] Fix a crash when applying wxTextCtrl style with GTK+3 Add missing NULL terminator to gtk_style_context_get() call (thanks g++ for the warning). --- src/gtk/textctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index bfd0dcc329..6db5c2559d 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1836,7 +1836,8 @@ void wxTextCtrl::DoApplyWidgetStyle(GtkRcStyle *style) gtk_style_context_add_class(context, GTK_STYLE_CLASS_VIEW); } gtk_style_context_get(context, selectedFocused, - "color", &fg_orig, "background-color", &bg_orig); + "color", &fg_orig, "background-color", &bg_orig, + NULL); if (IsMultiLine()) gtk_style_context_restore(context);