clang-tidy: use strcmmp properly

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2022-04-08 19:03:02 -07:00
parent 7a826ac529
commit 7bc9861301
+1 -1
View File
@@ -210,7 +210,7 @@ void PngImage::printStructure(std::ostream& out, PrintStructureOption option, in
const size_t imgSize = io_->size();
DataBuf cheaderBuf(8);
while (!io_->eof() && ::strcmp(chType, "IEND")) {
while (!io_->eof() && ::strcmp(chType, "IEND") != 0) {
size_t address = io_->tell();
size_t bufRead = io_->read(cheaderBuf.data(), cheaderBuf.size());