From da3488377069825c543796356ef864bf5b1faed1 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Mon, 1 Aug 2016 18:42:27 +0200 Subject: [PATCH] Improved message invalidscanf: Removed misleading example from verbose message --- lib/checkio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/checkio.cpp b/lib/checkio.cpp index f8c211078..8bb531634 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -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"