checkother.cpp: Fix typo in symbol placeholder in error message. (#1276)

This commit is contained in:
Sebastian 2018-06-05 10:24:19 +02:00 committed by GitHub
parent b9c1308a81
commit 7c9b6d9bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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