From 3d47ae9463805dcbb6b269eb8b479ec5e160704d Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 6 Nov 2013 06:42:27 -0800 Subject: [PATCH] checkother:memsetZeroBytes: improved verbose message. --- lib/checkother.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index a26c7257c..73c73ca52 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1736,7 +1736,8 @@ void CheckOther::checkMemsetZeroBytes() 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 verbose(summary + " Second and third arguments might be inverted."); + const std::string verbose(summary + " The second and third arguments might be inverted.\n" + "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); }