Improved message invalidscanf: Removed misleading example from verbose message

This commit is contained in:
PKEuS 2016-08-01 18:42:27 +02:00
parent b3877a8ba0
commit da34883770
1 changed files with 1 additions and 2 deletions

View File

@ -428,8 +428,7 @@ void CheckIO::invalidScanfError(const Token *tok)
reportError(tok, Severity::warning,
"invalidscanf", fname + "() without field width limits can crash with huge input data.\n" +
fname + "() without field width limits can crash with huge input data. Add a field width "
"specifier to fix this problem:\n"
" %s => %20s\n"
"specifier to fix this problem.\n"
"\n"
"Sample program that can crash:\n"
"\n"