Running astyle for the previous commits

This commit is contained in:
Reijo Tomperi 2009-01-31 18:54:34 +00:00
parent 7adcd0c355
commit 7da34ed249
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ void CheckDangerousFunctionsClass::dangerousFunctions()
ostr << _tokenizer->fileLine(tok) << ": Found 'mktemp'. You should use 'mkstemp' instead";
_errorLogger->reportErr(ostr.str());
}
else if (Token::Match(tok, "gets|scanf ("))
else if (Token::Match(tok, "gets|scanf ("))
{
std::ostringstream ostr;
ostr << _tokenizer->fileLine(tok) << ": Found '" << tok->str() << "'. You should use 'fgets' instead";

View File

@ -93,7 +93,7 @@ private:
check("void f()\n"
"{\n"
" char *x;\n"
" scanf(\"%s\", x);\n"
" scanf(\"%s\", x);\n"
"}\n");
ASSERT_EQUALS(std::string("[test.cpp:4]: Found 'scanf'. You should use 'fgets' instead\n"), errout.str());
}