Lines 55-61
unsigned char * load_png_file( const cha
Link Here
|
55 |
} |
55 |
} |
56 |
/* ensure that we opened a PNG file */ |
56 |
/* ensure that we opened a PNG file */ |
57 |
fread( header, 1, 8, fd ); |
57 |
fread( header, 1, 8, fd ); |
58 |
if ( ! png_check_sig( header, 8 ) ) { |
58 |
if ( png_sig_cmp( header, 0, 8 ) ) { |
59 |
fclose(fd); |
59 |
fclose(fd); |
60 |
fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file); |
60 |
fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file); |
61 |
return NULL; |
61 |
return NULL; |