This commit is contained in:
Pin
2021-10-11 22:10:11 -04:00
parent da7c3909a1
commit 98e1607604
3 changed files with 35 additions and 63 deletions

View File

@@ -4,7 +4,6 @@
const long png_signature[8] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a };
int check_header_length(unsigned char *addr, long offset) {
unsigned int res = 0;
for( int i = 0; i < 4; i++ ) {
@@ -61,3 +60,4 @@ unsigned char* file_to_char_array(FILE *in_file, size_t* size) {
}
return file_data;
}