X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46f83c8e8ff96e7a6456b61211c5a281203ea129..85284ca4b226d9a1ab6bed26c5eaa480543649d5:/src/os2/font.cpp diff --git a/src/os2/font.cpp b/src/os2/font.cpp index 8fd33e10b0..ca09caefc3 100644 --- a/src/os2/font.cpp +++ b/src/os2/font.cpp @@ -697,7 +697,7 @@ bool wxNativeFontInfo::SetFaceName( const wxString& sFacename ) { - wxStrncpy((wxChar*)fa.szFacename, sFacename, WXSIZEOF(fa.szFacename)); + wxStrlcpy((wxChar*)fa.szFacename, sFacename, WXSIZEOF(fa.szFacename)); return true; } // end of wxNativeFontInfo::SetFaceName