From: Václav Slavík Date: Thu, 28 Jun 2007 20:01:11 +0000 (+0000) Subject: fixed FromAscii to work with NULL argument (broken after recent changes) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0081dd72467a15ef3f47033b18f667d7f1a508c5 fixed FromAscii to work with NULL argument (broken after recent changes) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/string.cpp b/src/common/string.cpp index 77ace82f76..87e5613472 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -999,7 +999,7 @@ wxString wxString::FromAscii(const char *ascii, size_t len) wxString wxString::FromAscii(const char *ascii) { - return FromAscii(ascii, strlen(ascii)); + return FromAscii(ascii, wxStrlen(ascii)); } wxString wxString::FromAscii(const char ascii)