Check if there aren't too many variadic arguments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
38914d5a51
commit
bb2ce9356e
@ -642,6 +642,9 @@ wxFormatString::ArgumentType DoGetArgumentType(const CharType *format,
|
||||
|
||||
wxPrintfConvSpecParser<CharType> parser(format);
|
||||
|
||||
wxCHECK_MSG( n <= parser.nargs, wxFormatString::Arg_Unknown,
|
||||
"more arguments than format string specifiers?" );
|
||||
|
||||
wxCHECK_MSG( parser.pspec[n-1] != NULL, wxFormatString::Arg_Unknown,
|
||||
"requested argument not found - invalid format string?" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user