https://github.com/libsdl-org/libtiff/commit/204be6b2a24dcb125b13e446b45bfbc9247f9f42
From 204be6b2a24dcb125b13e446b45bfbc9247f9f42 Mon Sep 17 00:00:00 2001
From: Olivier Paquet <[EMAIL REDACTED]>
Date: Thu, 6 May 2010 02:58:08 +0000
Subject: [PATCH] * libtiff/tif_print.c: Have TIFFTAG_REFERENCEBLACKWHITE
always print 6 floats instead of 2*SamplesPerPixel.
http://bugzilla.maptools.org/show_bug.cgi?id=2186
---
libtiff/tif_print.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libtiff/tif_print.c b/libtiff/tif_print.c
index 871fffd6..4da236bb 100644
--- a/libtiff/tif_print.c
+++ b/libtiff/tif_print.c
@@ -1,4 +1,4 @@
-/* $Id: tif_print.c,v 1.36.2.2 2009-09-17 18:00:28 bfriesen Exp $ */
+/* $Id: tif_print.c,v 1.36.2.3 2010-05-06 02:58:08 olivier Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -144,7 +144,7 @@ _TIFFPrettyPrintField(TIFF* tif, FILE* fd, ttag_t tag,
uint16 i;
fprintf(fd, " Reference Black/White:\n");
- for (i = 0; i < td->td_samplesperpixel; i++)
+ for (i = 0; i < 3; i++)
fprintf(fd, " %2d: %5g %5g\n", i,
((float *)raw_data)[2*i+0],
((float *)raw_data)[2*i+1]);