Make Tests pass

This commit is contained in:
Isaac Shoebottom 2023-12-04 20:53:31 -04:00
parent 73234d0764
commit e79158e3f1

View File

@ -32,7 +32,7 @@ int main(int argc, char *argv[]) {
bool is_idat = memcmp(chunks[i]->type, "IDAT", 4) == 0; bool is_idat = memcmp(chunks[i]->type, "IDAT", 4) == 0;
bool is_iend = memcmp(chunks[i]->type, "IEND", 4) == 0; bool is_iend = memcmp(chunks[i]->type, "IEND", 4) == 0;
if (is_idat || is_iend) { if (is_idat || is_iend) {
printf("Found %.4s chunk\n", chunks[i]->type); printf("Found %.4s\n", chunks[i]->type);
if (is_idat) { if (is_idat) {
xor_data(chunks[i]); xor_data(chunks[i]);
} }