From a4d796bca404793cbbecd85d9226175910f169ba Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Thu, 26 May 2005 07:50:38 +0000 Subject: [PATCH] Use tdir_count when calling TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=845 --- libtiff/tif_dirwrite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtiff/tif_dirwrite.c b/libtiff/tif_dirwrite.c index a4c5e8dc..150418c6 100644 --- a/libtiff/tif_dirwrite.c +++ b/libtiff/tif_dirwrite.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirwrite.c,v 1.27 2004-12-10 14:33:01 dron Exp $ */ +/* $Id: tif_dirwrite.c,v 1.28 2005-05-26 07:50:38 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -884,7 +884,7 @@ TIFFWriteFloatArray(TIFF* tif, TIFFDirEntry* dir, float* v) static int TIFFWriteDoubleArray(TIFF* tif, TIFFDirEntry* dir, double* v) { - TIFFCvtNativeToIEEEDouble(tif, n, v); + TIFFCvtNativeToIEEEDouble(tif, dir->tdir_count, v); return (TIFFWriteData(tif, dir, (char*) v)); }