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