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:
Václav Slavík 2010-06-24 10:34:31 +00:00
parent 38914d5a51
commit bb2ce9356e

View File

@ -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?" );