diff options
author | bfriesen <bfriesen> | 2015-08-19 02:31:04 +0000 |
---|---|---|
committer | bfriesen <bfriesen> | 2015-08-19 02:31:04 +0000 |
commit | f3fc4eaff5b0d3ef9b0464e60540a051909b8156 (patch) | |
tree | 47f838852056611f5b2459f550c97eedef52f2ab /libtiff/tif_print.c | |
parent | 5d2b2f4d47cdc6e49336a5bb1cba3c7840ef7ed8 (diff) | |
download | libtiff-f3fc4eaff5b0d3ef9b0464e60540a051909b8156.tar.gz |
Support large files under Windows using tif_unix.c and libtiff tools.
Diffstat (limited to 'libtiff/tif_print.c')
-rw-r--r-- | libtiff/tif_print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtiff/tif_print.c b/libtiff/tif_print.c index 9e27ae25..7b1a4222 100644 --- a/libtiff/tif_print.c +++ b/libtiff/tif_print.c @@ -1,4 +1,4 @@ -/* $Id: tif_print.c,v 1.61 2012-12-12 22:50:18 tgl Exp $ */ +/* $Id: tif_print.c,v 1.62 2015-08-19 02:31:04 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -35,7 +35,7 @@ #include <ctype.h> static void -_TIFFprintAsciiBounded(FILE* fd, const char* cp, int max_chars); +_TIFFprintAsciiBounded(FILE* fd, const char* cp, size_t max_chars); static const char *photoNames[] = { "min-is-white", /* PHOTOMETRIC_MINISWHITE */ @@ -395,7 +395,7 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags) for (cp = td->td_inknames; i > 0 && cp < td->td_inknames + td->td_inknameslen; cp = strchr(cp,'\0')+1, i--) { - int max_chars = + size_t max_chars = td->td_inknameslen - (cp - td->td_inknames); fputs(sep, fd); _TIFFprintAsciiBounded(fd, cp, max_chars); @@ -679,7 +679,7 @@ _TIFFprintAscii(FILE* fd, const char* cp) } static void -_TIFFprintAsciiBounded(FILE* fd, const char* cp, int max_chars) +_TIFFprintAsciiBounded(FILE* fd, const char* cp, size_t max_chars) { for (; max_chars > 0 && *cp != '\0'; cp++, max_chars--) { const char* tp; |