From: Vadim Zeitlin Date: Mon, 27 Nov 2006 15:02:15 +0000 (+0000) Subject: replaced assert in wxPrintfConvSpec::ReplaceAsteriskWith() with a wxCHECK to avoid... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b1bc4b650063ce89740e831749d898c974c4fade replaced assert in wxPrintfConvSpec::ReplaceAsteriskWith() with a wxCHECK to avoid crash in release builds (coverity id 212) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index da63e4ba0c..f79bd0cbb8 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -624,7 +624,7 @@ void wxPrintfConvSpec::ReplaceAsteriskWith(int width) // find the first * in our flag buffer char *pwidth = strchr(m_szFlags, '*'); - wxASSERT(pwidth); + wxCHECK_RET(pwidth, _T("field width must be specified")); // save what follows the * (the +1 is to skip the asterisk itself!) strcpy(temp, pwidth+1);