From: George Tasker Date: Fri, 5 Jan 2001 19:10:04 +0000 (+0000) Subject: Fixed a problem in ConvertWXArrayToC() that would assign a string to an incorrect... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/54b84891257f53e347c05852c55d126c1ea0def6?ds=inline 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 --- 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;