astyle formatting

This commit is contained in:
Daniel Marjamäki 2010-05-26 19:21:34 +02:00
parent 88e9a4ade6
commit d23f63c805
2 changed files with 16 additions and 16 deletions

View File

@ -1470,8 +1470,8 @@ void CheckBufferOverrun::checkBufferAllocatedWithStrlen()
bufferOverrun(tok); bufferOverrun(tok);
} }
else if (Token::Match(tok, "sprintf ( %varid% , %str% , %var% )", dstVarId) && else if (Token::Match(tok, "sprintf ( %varid% , %str% , %var% )", dstVarId) &&
tok->tokAt(6)->varId() == srcVarId && tok->tokAt(6)->varId() == srcVarId &&
tok->tokAt(4)->str().find("%s") != std::string::npos) tok->tokAt(4)->str().find("%s") != std::string::npos)
{ {
bufferOverrun(tok); bufferOverrun(tok);
} }