Commit Graph

31 Commits

Author SHA1 Message Date
Thomas Bernard
04e7c51f4e
fax2tiff.c: print usage on stdout when using -h option
see #17
2020-04-26 22:11:35 +02:00
Yuri Aksenov
88b410f800
fix fax2tiff
see http://bugzilla.maptools.org/show_bug.cgi?id=2799
fixes d9bc8472e7
2019-02-02 15:14:54 +01:00
Even Rouault
f0a54a4fa0 Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
Bob Friesenhahn
1cb6c46b9d fax2tiff: Pass the FAX_Client_Data struct as client data 2017-10-29 18:28:43 +00:00
Even Rouault
fa55777370 * litiff/tif_fax3.c: avoid crash in Fax3Close() on empty file.
Patch by Alan Coopersmith  + complement by myself.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2673
* tools/fax2tiff.c: emit appropriate message if the input file is
empty. Patch by Alan Coopersmith.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2672
2017-04-27 19:50:01 +00:00
Bob Friesenhahn
5ba49e2beb * tools/fax2tiff.c (main): Applied patch by Jörg Ahrens to fix
passing client data for Win32 builds using tif_win32.c
(USE_WIN32_FILEIO defined) for file I/O.  Patch was provided via
email on November 20, 2016.
2016-11-20 18:04:52 +00:00
Even Rouault
124d8fc810 * tools/fax2tiff.c: fix segfault when specifying -r without
argument. Patch by Yuriy M. Kaminskiy.
Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2572
2016-10-25 22:22:45 +00:00
Bob Friesenhahn
d9bc8472e7 fax2tiff eliminate warning about cast to thandle_t. 2015-08-23 15:40:45 +00:00
Bob Friesenhahn
d21d2b3057 * libtiff/tif_config.vc.h: Make adjustments to match the new
definitions that configure produces, including for WIN64.  Still
needs to be tested.

'lld' is not assured by the run-time DLLs and so GCC warns.
Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
and printf format specifier to deal with printing values of
'size_t' type.  In particular, this was necessary for WIN64.
Added a configure test for if the system headers provide 'optarg'
(normal case) and block out the many explicit 'extern' statements
in the utilities.  This was found to be necessary under Windows
when getopt is in a DLL and the symbols are already imported with
dllimport via standard header files.
2015-06-21 01:09:09 +00:00
Bob Friesenhahn
4e0d97f83c * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
that it is clearly a memory allocation error message, and also
includes the size of the allocation request.
2010-03-10 18:56:48 +00:00
Frank Warmerdam
46bac877c5 avoid 32/64bit casting warnings 2009-01-22 21:12:45 +00:00
Frank Warmerdam
3db9feb595 introduce libport.h prototypes to reduce warnings 2009-01-22 20:53:07 +00:00
Andrey Kiselev
550cfd7a32 Properly set the binary mode for stdin stream as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
2006-04-20 12:36:23 +00:00
Andrey Kiselev
bc6736f91d Fixed win32 I/O functions usage as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
2006-03-21 16:37:51 +00:00
Andrey Kiselev
08300a98ec Fixed wrong TIFFerror() invocations as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
2006-03-17 14:58:57 +00:00
Andrey Kiselev
9f662299df Properly calculate sizes of temporary arrays as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=943
2005-10-31 14:48:59 +00:00
Andrey Kiselev
dcbd209375 Added option '-r' to set RowsPerStrip parameter as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=944
2005-10-31 13:40:38 +00:00
Andrey Kiselev
1abc31ad68 *** empty log message *** 2004-09-02 14:36:33 +00:00
Andrey Kiselev
dafeac1024 Warnings removed. 2004-09-02 14:27:49 +00:00
Andrey Kiselev
03893d01cb Use the new functions in the code. 2004-09-01 18:43:33 +00:00
Andrey Kiselev
c79429f4fe Removed message about LZW patents. 2004-07-24 19:03:16 +00:00
Andrey Kiselev
37001a073e Avoid warnings. 2004-06-04 11:50:09 +00:00
Andrey Kiselev
320ac7822a Page numbering fixed, as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=341
2003-05-25 05:56:26 +00:00
Andrey Kiselev
147baafe89 Removing previous patch. 2003-05-24 06:25:10 +00:00
Andrey Kiselev
f00e62d510 Number pages starting with zero as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=341
2003-05-24 06:16:09 +00:00
Andrey Kiselev
c26da71049 Added library version reporting to all tools. 2003-03-12 14:05:05 +00:00
Andrey Kiselev
1f20935271 New switch (-X) to set width of raw input page. Patch supplied by
Julien Gaulmin. See http://bugzilla.remotesensing.org/show_bug.cgi?id=293
for details.
2003-02-27 15:04:46 +00:00
Andrey Kiselev
be7810fc2c Applied patch from Julien Gaulmin (thanks, Julien!). More switches for
fax2tiff tool for better control of input and output. Details at
http://bugzilla.remotesensing.org/show_bug.cgi?id=27
2003-02-03 16:54:22 +00:00
Andrey Kiselev
2484287354 Updated to reflect latest changes in libtiff. Closes
http://bugzilla.remotesensing.org/show_bug.cgi?id=125
2002-04-22 07:32:24 +00:00
Frank Warmerdam
d8dfb6780a avoid warnings on IRIX 2000-01-28 21:18:16 +00:00
Mike Welles
0ef31e1f62 Initial revision 1999-07-27 21:50:26 +00:00