X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae1675944bfdcc97b233754bbe26f32b276d70d9..c78d8a70f5ef13f05a00eb2507b7581f61b09a27:/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);