X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cf545c76c1b72d420064bd1d21ebb43e28d75a7..28354d90fce9a6b1f8ccdf713602992fb5c7ccbb:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index d1d0efe243..bb97970acc 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -251,7 +251,7 @@ wxString wxPathList::FindValidPath (const wxString& file) for (wxStringList::compatibility_iterator node = GetFirst(); node; node = node->GetNext()) { - const wxChar *path = node->GetData(); + const wxString path(node->GetData()); wxStrcpy (wxFileFunctionsBuffer, path); wxChar ch = wxFileFunctionsBuffer[wxStrlen(wxFileFunctionsBuffer)-1]; if (ch != wxT('\\') && ch != wxT('/'))