2008.08.29 22:53 "[Tiff] Some security fixes from RHEL", by Even Rouault

2008.09.04 20:41 "Re: [Tiff] tiffsplit.c broken on Windows in trunk", by Toby Thain

On 4-Sep-08, at 5:06 PM, Edward Lam wrote:

I just updated libtiff and ran into a problem with this revision:

revision 1.15

date: 2008/09/03 07:47:26;  author: dron;  state: Exp;  lines: +10 -7

Get rid of unsafe strcpy()/strcat() calls when doing the filename/path construction.

The problem is that snprintf() is _snprintf() on Windows. I had to add the following to get it to compile on VC8:

Hmm, anyone else tired of these dirty tricks yet? :(

--Toby

#ifdef _WIN32
#define snprintf _snprintf
#endif