X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae1675944bfdcc97b233754bbe26f32b276d70d9..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/palmos/utils.cpp?ds=sidebyside diff --git a/src/palmos/utils.cpp b/src/palmos/utils.cpp index 66df865936..a03694b0dc 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);