From 7c9b6d9bb0d896af75aad33eaf9051721a553bd5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 5 Jun 2018 10:24:19 +0200 Subject: [PATCH] checkother.cpp: Fix typo in symbol placeholder in error message. (#1276) --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 83feb390e..0409490e1 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -135,7 +135,7 @@ void CheckOther::checkCastIntToCharAndBackError(const Token *tok, const std::str "$symbol:" + strFunctionName + "\n" "Storing $symbol() return value in char variable and then comparing with EOF.\n" "When saving $symbol() return value in char variable there is loss of precision. " - " When $symnol() returns EOF this value is truncated. Comparing the char " + " When $symbol() returns EOF this value is truncated. Comparing the char " "variable with EOF can have unexpected results. For instance a loop \"while (EOF != (c = $symbol());\" " "loops forever on some compilers/platforms and on other compilers/platforms it will stop " "when the file contains a matching character.", CWE197, false