21 lines
655 B
Plaintext
21 lines
655 B
Plaintext
$OpenBSD: patch-tiff_c,v 1.1 2012/04/14 15:13:30 naddy Exp $
|
|
--- tiff.c.orig Fri Apr 13 15:18:04 2012
|
|
+++ tiff.c Fri Apr 13 15:19:54 2012
|
|
@@ -34,14 +34,14 @@ static TIFF *is_tiff(fullname, name, info)
|
|
struct tiff_info *info;
|
|
{
|
|
ZFILE *zf;
|
|
- TIFFHeader th;
|
|
+ TIFFHeaderClassic th;
|
|
TIFF *tiff;
|
|
|
|
zf = zopen(fullname);
|
|
|
|
/* read TIFF header and see if it looks right
|
|
*/
|
|
- if ((zread(zf, (byte *)&th, sizeof(TIFFHeader)) == sizeof(TIFFHeader)) &&
|
|
+ if ((zread(zf, (byte *)&th, sizeof(TIFFHeaderClassic)) == sizeof(TIFFHeaderClassic)) &&
|
|
((th.tiff_magic == TIFF_BIGENDIAN) ||
|
|
(th.tiff_magic == TIFF_LITTLEENDIAN))) {
|
|
|