Returns true if an Exif header was seen.
+=cut
*/
int
/* rough check count + 1 entry + next offset */
if (offset + (2+12+4) > tiff->size) {
- mm_log((2, "offset %uld beyond end off Exif block"));
+ mm_log((2, "offset %lu beyond end off Exif block", offset));
return 0;
}
/* check we can fit the whole thing */
ifd_size = 2 + count * 12 + 4; /* count + count entries + next offset */
if (offset + ifd_size > tiff->size) {
- mm_log((2, "offset %uld beyond end off Exif block"));
+ mm_log((2, "offset %lu beyond end off Exif block", offset));
return 0;
}
static unsigned
tiff_get16(imtiff *tiff, unsigned long offset) {
if (offset + 2 > tiff->size) {
- mm_log((3, "attempt to get16 at %uld in %uld image", offset, tiff->size));
+ mm_log((3, "attempt to get16 at %lu in %lu image", offset,
+ (unsigned long)tiff->size));
return 0;
}
static unsigned
tiff_get32(imtiff *tiff, unsigned long offset) {
if (offset + 4 > tiff->size) {
- mm_log((3, "attempt to get16 at %uld in %uld image", offset, tiff->size));
+ mm_log((3, "attempt to get16 at %lu in %lu image", offset,
+ (unsigned long)tiff->size));
return 0;
}
int result;
if (offset + 2 > tiff->size) {
- mm_log((3, "attempt to get16 at %uld in %uld image", offset, tiff->size));
+ mm_log((3, "attempt to get16 at %lu in %lu image", offset,
+ (unsigned long)tiff->size));
return 0;
}
unsigned work;
if (offset + 4 > tiff->size) {
- mm_log((3, "attempt to get16 at %uld in %uld image", offset, tiff->size));
+ mm_log((3, "attempt to get16 at %lu in %lu image", offset,
+ (unsigned long)tiff->size));
return 0;
}
tiff_get_rat(imtiff *tiff, unsigned long offset) {
unsigned long numer, denom;
if (offset + 8 > tiff->size) {
- mm_log((3, "attempt to get_rat at %lu in %lu image", offset, tiff->size));
+ mm_log((3, "attempt to get_rat at %lu in %lu image", offset,
+ (unsigned long)tiff->size));
return 0;
}
tiff_get_rats(imtiff *tiff, unsigned long offset) {
long numer, denom;
if (offset + 8 > tiff->size) {
- mm_log((3, "attempt to get_rat at %lu in %lu image", offset, tiff->size));
+ mm_log((3, "attempt to get_rat at %lu in %lu image", offset,
+ (unsigned long)tiff->size));
return 0;
}