X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6afc1b46650ee234868fd4f38526e22a664b6638..c13d6ac1ea199d1e3908d40d129e2fd5a4d82df7:/src/palmos/utils.cpp diff --git a/src/palmos/utils.cpp b/src/palmos/utils.cpp index 3af6a90c6b..d52e90fb35 100644 --- a/src/palmos/utils.cpp +++ b/src/palmos/utils.cpp @@ -44,7 +44,7 @@ #include // SysDoze()... #include -#ifdef defined (__WXPALMOS6__) +#ifdef __WXPALMOS6__ extern void SysReset (void); extern UInt32 SysTaskID (void); #endif @@ -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); @@ -165,7 +165,7 @@ bool wxShutdown(wxShutdownFlags wFlags) switch (wFlags) { case wxSHUTDOWN_POWEROFF: // TODO: turn off lamps -#ifdef defined (__WXPALMOS6__) +#ifdef __WXPALMOS6__ //extern void SysReset (void); //extern UInt32 SysTaskID (void); #define SysReset() @@ -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;