summaryrefslogtreecommitdiff
path: root/src/libtiff/tif_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtiff/tif_print.c')
-rw-r--r--src/libtiff/tif_print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libtiff/tif_print.c b/src/libtiff/tif_print.c
index 01429be..25bdda9 100644
--- a/src/libtiff/tif_print.c
+++ b/src/libtiff/tif_print.c
@@ -1,4 +1,4 @@
-/* $Id: tif_print.c,v 1.1 2008/10/17 06:16:07 scuri Exp $ */
+/* $Id: tif_print.c,v 1.2 2009/08/21 04:01:59 scuri Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -491,7 +491,7 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags)
} else
fprintf(fd, "(present)\n");
}
- if (TIFFFieldSet(tif, FIELD_SUBIFD)) {
+ if (TIFFFieldSet(tif, FIELD_SUBIFD) && (td->td_subifd)) {
fprintf(fd, " SubIFD Offsets:");
for (i = 0; i < td->td_nsubifd; i++)
fprintf(fd, " %5lu", (long) td->td_subifd[i]);
@@ -509,7 +509,7 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags)
for(i = 0; i < count; i++) {
ttag_t tag = TIFFGetTagListEntry(tif, i);
const TIFFFieldInfo *fip;
- uint16 value_count;
+ uint32 value_count;
int mem_alloc = 0;
void *raw_data;