commit dfb75ad3021de5c7e268325804e891bbbc225834 parent 1c63df1c2b941743c25244c10e3265f168e8b339 Author: Frederic Cambus <fred@statdns.com> Date: Sat, 5 Oct 2019 22:25:40 +0200 Remove the else clause. Diffstat:
M | pcx2gba.c | | | 6 | +----- |
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/pcx2gba.c b/pcx2gba.c @@ -133,12 +133,8 @@ int main(int argc, char *argv[]) { offset += run_count; loop += 2; } else { - if (offset < pcx_buffer_size) { + if (offset < pcx_buffer_size) pcx_buffer[offset] = current_byte; - } else { - printf("ERROR: Input File is corrupt\n\n"); - return EXIT_FAILURE; - } offset++; loop++;