From: Ove Kaaven Date: Mon, 3 Jan 2000 18:44:32 +0000 (+0000) Subject: Another Unicode compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0e89bb17e8fcac6e970afa137390f688602bbd97 Another Unicode compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/fontutil.cpp b/src/msw/fontutil.cpp index 5fddec59b8..ecaeb8e2bc 100644 --- a/src/msw/fontutil.cpp +++ b/src/msw/fontutil.cpp @@ -168,7 +168,7 @@ bool wxTestFontEncoding(const wxNativeEncodingInfo& info) wxZeroMemory(lf); // all default values lf.lfCharSet = info.charset; - strncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName)); + wxStrncpy(lf.lfFaceName, info.facename, sizeof(lf.lfFaceName)); HFONT hfont = ::CreateFontIndirect(&lf); if ( !hfont )