From 54b84891257f53e347c05852c55d126c1ea0def6 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Fri, 5 Jan 2001 19:10:04 +0000 Subject: [PATCH] Fixed a problem in ConvertWXArrayToC() that would assign a string to an incorrect memory location due to missing parens "(*choices)[i] = aChoices[i];" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/choicdgg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/choicdgg.cpp b/src/generic/choicdgg.cpp index 99d5079b4f..c56105fb18 100644 --- a/src/generic/choicdgg.cpp +++ b/src/generic/choicdgg.cpp @@ -81,9 +81,10 @@ int ConvertWXArrayToC(const wxArrayString& aChoices, wxString **choices) { int n = aChoices.GetCount(); *choices = new wxString[n]; + for ( int i = 0; i < n; i++ ) { - *choices[i] = aChoices[i]; + (*choices)[i] = aChoices[i]; } return n; -- 2.45.2