X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c33522fca7cddc441a316f5b9fb50d7685435ba..6362d82b3ed82aa6795e4ad03160820f94c9e4d4:/src/msdos/utilsdos.cpp diff --git a/src/msdos/utilsdos.cpp b/src/msdos/utilsdos.cpp index 006603afa5..93d9b31006 100644 --- a/src/msdos/utilsdos.cpp +++ b/src/msdos/utilsdos.cpp @@ -233,7 +233,7 @@ bool wxGetUserId(wxChar *buf, int n) if (!user) user = _T("user"); - wxStrncpy(buf, user, n); + wxStrlcpy(buf, user, n); return true; } @@ -254,7 +254,7 @@ bool wxGetHostName(wxChar *buf, int n) if (!host) host = _T("host"); - wxStrncpy(buf, host, n); + wxStrlcpy(buf, host, n); return true; }