X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae1675944bfdcc97b233754bbe26f32b276d70d9..ae901b234c4a0aa7c1777b3bd181dd7f8517ad21:/src/palmos/utils.cpp 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);