sprintf overlapping data
This commit is contained in:
parent
e764cc4f95
commit
d6ef44c73e
|
@ -360,9 +360,9 @@ void CheckOther::InvalidFunctionUsage()
|
|||
if (parlevel < 0)
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue