From 3860d4fa2bba4786a64e39bd63ceaa2cc0bf4ea6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Feb 2009 11:51:34 +0000 Subject: [PATCH] fix some buffer overflows (closes #10500) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/tex2rtf/src/htmlutil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/tex2rtf/src/htmlutil.cpp b/utils/tex2rtf/src/htmlutil.cpp index de0409e8ce..93b762f963 100644 --- a/utils/tex2rtf/src/htmlutil.cpp +++ b/utils/tex2rtf/src/htmlutil.cpp @@ -3044,17 +3044,17 @@ bool HTMLGo(void) wxChar buf[300]; if (truncateFilenames) - wxSnprintf(buf, sizeof(buf), _T("%s.htm"), FileRoot); + wxSnprintf(buf, WXSIZEOF(buf), _T("%s.htm"), FileRoot); else - wxSnprintf(buf, sizeof(buf), _T("%s_contents.html"), FileRoot); + wxSnprintf(buf, WXSIZEOF(buf), _T("%s_contents.html"), FileRoot); if (TitlepageName) delete[] TitlepageName; TitlepageName = copystring(buf); Titlepage = wxFopen(buf, _T("w")); if (truncateFilenames) - wxSnprintf(buf, sizeof(buf), _T("%s_fc.htm"), FileRoot); + wxSnprintf(buf, WXSIZEOF(buf), _T("%s_fc.htm"), FileRoot); else - wxSnprintf(buf, sizeof(buf), _T("%s_fcontents.html"), FileRoot); + wxSnprintf(buf, WXSIZEOF(buf), _T("%s_fcontents.html"), FileRoot); contentsFrameName = copystring(buf);