* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in

tif_win32.c.  Patch by Edward Lam.
This commit is contained in:
Bob Friesenhahn 2011-12-22 17:07:57 +00:00
parent d338f7fe22
commit 306ae2fb9f
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2011-12-22 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
* libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
tif_win32.c. Patch by Edward Lam.
* configure.ac: Add libtiff private dependency on -llzma for
pkg-config. Patch by Mark Brand.
Updated Automake to 1.11.2.

View File

@ -1,4 +1,4 @@
/* $Id: tif_win32.c,v 1.38 2011-02-09 18:05:00 fwarmerdam Exp $ */
/* $Id: tif_win32.c,v 1.39 2011-12-22 17:07:57 bfriesen Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@ -377,7 +377,7 @@ Win32WarningHandler(const char* module, const char* fmt, va_list ap)
LPCTSTR szTitleText = "%s Warning";
LPCTSTR szDefaultModule = "LIBTIFF";
LPCTSTR szTmpModule = (module == NULL) ? szDefaultModule : module;
int nBufSize = (strlen(szTmpModule) +
SIZE_T nBufSize = (strlen(szTmpModule) +
strlen(szTitleText) + strlen(fmt) + 256)*sizeof(char);
if ((szTitle = (LPTSTR)LocalAlloc(LMEM_FIXED, nBufSize)) == NULL)
@ -408,7 +408,7 @@ Win32ErrorHandler(const char* module, const char* fmt, va_list ap)
LPCTSTR szTitleText = "%s Error";
LPCTSTR szDefaultModule = "LIBTIFF";
LPCTSTR szTmpModule = (module == NULL) ? szDefaultModule : module;
int nBufSize = (strlen(szTmpModule) +
SIZE_T nBufSize = (strlen(szTmpModule) +
strlen(szTitleText) + strlen(fmt) + 256)*sizeof(char);
if ((szTitle = (LPTSTR)LocalAlloc(LMEM_FIXED, nBufSize)) == NULL)