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
This commit is contained in:
parent
566921195a
commit
b1bc4b6500
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user