From 60b37dbedcfe6e22fe9a61ee8432ae7bd2780483 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Mon, 28 Jul 2014 21:54:33 +0000 Subject: Rename german/ and graphics/ patch-xy patches to reflect the files they modify. --- graphics/tifmerge/files/patch-tifmerge.c | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 graphics/tifmerge/files/patch-tifmerge.c (limited to 'graphics/tifmerge/files/patch-tifmerge.c') diff --git a/graphics/tifmerge/files/patch-tifmerge.c b/graphics/tifmerge/files/patch-tifmerge.c new file mode 100644 index 000000000000..bcc6d0048e5f --- /dev/null +++ b/graphics/tifmerge/files/patch-tifmerge.c @@ -0,0 +1,47 @@ +--- tifmerge.c.orig Sat May 1 17:06:44 1999 ++++ tifmerge.c Sat May 1 17:07:43 1999 +@@ -10,11 +10,11 @@ + + */ + +-#include ++#pragma align 1 + #include + #include + +-#include "TifMerge.h" ++#include "tifmerge.h" + + typedef unsigned long DWORD; + typedef unsigned short WORD; +@@ -279,17 +279,17 @@ + stTiffIFD* pLastIFD; + + /* Open target data file */ +- fOutFile = fopen( lpOutFile, "r+b"); ++ fOutFile = fopen( lpOutFile, "r+"); + if( fOutFile == NULL) + return -1; + + /* save the offset to the last IFD */ +- pLastIFD = TiffReadLastIFD( fOutFile); ++ if ((pLastIFD = TiffReadLastIFD( fOutFile)) == NULL) return 1; + + /* Open source data file */ +- fInFile = fopen( lpInFile, "rb"); ++ fInFile = fopen( lpInFile, "r"); + if( fInFile == NULL) +- return -1; ++ return -2; + + /* seek to end of file */ + fseek( fOutFile, 0, SEEK_END); +@@ -298,7 +298,7 @@ + dwOff = ftell( fOutFile); + + /* append data */ +- dwIFDPos = TiffAppendFile( fOutFile, fInFile); ++ if ((dwIFDPos = TiffAppendFile( fOutFile, fInFile)) == 0) return 2; + + /* fix any file offsets */ + dwFPosNextIFD = pLastIFD->dwFilePosNextIFD; -- cgit v1.2.3