X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae1675944bfdcc97b233754bbe26f32b276d70d9..2e14066008229145e2da7b9f05a478ce38631f83:/src/palmos/utils.cpp diff --git a/src/palmos/utils.cpp b/src/palmos/utils.cpp index 66df865936..d52e90fb35 100644 --- a/src/palmos/utils.cpp +++ b/src/palmos/utils.cpp @@ -97,7 +97,7 @@ bool wxGetUserName(wxChar *buf, int maxSize) return false; } - wxStrncpy (buf, wxSafeConvertMB2WX(id), maxSize - 1); + wxStrlcpy(buf, wxSafeConvertMB2WX(id), maxSize); // free the buffer MemPtrUnlock(id); @@ -251,7 +251,7 @@ bool wxIsPlatform64Bit() wxString wxGetOsDescription() { - wxString strOS = _T("PalmOS"); + wxString strOS = wxT("PalmOS"); //err = FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion); //if (romVersion >= 0x02000000) v20 = true;