Checkother:memsetZeroBytes: removed not needed '\n' from verbose message.

This commit is contained in:
orbitcowboy 2013-11-07 05:15:36 -08:00
parent 3d47ae9463
commit 43103c84d8
1 changed files with 3 additions and 2 deletions

View File

@ -1736,8 +1736,9 @@ void CheckOther::checkMemsetZeroBytes()
void CheckOther::memsetZeroBytesError(const Token *tok, const std::string &varname) void CheckOther::memsetZeroBytesError(const Token *tok, const std::string &varname)
{ {
const std::string summary("memset() called to fill 0 bytes of '" + varname + "'."); const std::string summary("memset() called to fill 0 bytes of '" + varname + "'.");
const std::string verbose(summary + " The second and third arguments might be inverted.\n" const std::string verbose(summary + " The second and third arguments might be inverted."
"The function memset ( void * ptr, int value, size_t num ) sets the first num bytes of the block of memory pointed by ptr to the specified value."); " The function memset ( void * ptr, int value, size_t num ) sets the"
" first num bytes of the block of memory pointed by ptr to the specified value.");
reportError(tok, Severity::warning, "memsetZeroBytes", summary + "\n" + verbose); reportError(tok, Severity::warning, "memsetZeroBytes", summary + "\n" + verbose);
} }