sprintf overlapping data

This commit is contained in:
Daniel Marjamäki 2009-01-27 07:21:52 +00:00
parent e764cc4f95
commit d6ef44c73e
1 changed files with 2 additions and 2 deletions

View File

@ -360,9 +360,9 @@ void CheckOther::InvalidFunctionUsage()
if (parlevel < 0) if (parlevel < 0)
break; break;
} }
else if (parlevel == 0 && tok2->varId() == varid) else if (parlevel == 0 && Token::Match(tok2, ", %varid% [,)]", varid))
{ {
_errorLogger->reportErr(ErrorMessage::sprintfOverlappingData(_tokenizer, tok2, _settings, tok2->str())); _errorLogger->reportErr(ErrorMessage::sprintfOverlappingData(_tokenizer, tok2->next(), _settings, tok2->next()->str()));
break; break;
} }
} }