X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15169ab34118dbc617d499b683adcb7e4f64a961..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/utils.cpp diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index b52a6a01b3..e302a68cdd 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -317,8 +317,10 @@ wxString wxGetOsDescription() char data[128]; struct utsname name; uname(&name); - sprintf(data, "Mac OS X (%s %s %s)", name.sysname, name.release, name.machine); - return wxString(data, wxConvUTF8); + return wxString::Format(_T("Mac OS X (%s %s %s)"), + wxString::FromAscii(name.sysname).c_str(), + wxString::FromAscii(name.release).c_str(), + wxString::FromAscii(name.machine).c_str()); } #ifndef __DARWIN__