]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/fontenum.cpp
Make wxEventLoop::AddSourceForFD() static.
[wxWidgets.git] / src / os2 / fontenum.cpp
index 1af60107aafd055a26f2bb3d6c36c6fa5f9ac03b..fdb1f4af112f65411f7841fa77224c222d66913a 100644 (file)
@@ -120,7 +120,7 @@ void wxFontEnumeratorHelper::DoEnumerate()
 #ifdef __WIN32__
     LOGFONT lf;
     lf.lfCharSet = m_charset;
-    wxStrncpy(lf.lfFaceName, m_facename, WXSIZEOF(lf.lfFaceName));
+    wxStrlcpy(lf.lfFaceName, m_facename, WXSIZEOF(lf.lfFaceName));
     lf.lfPitchAndFamily = 0;
     ::EnumFontFamiliesEx(hDC, &lf, (wxFONTENUMPROC)wxFontEnumeratorProc,
                          (LPARAM)this, 0) ;