49 lines
1.9 KiB
Plaintext
49 lines
1.9 KiB
Plaintext
$OpenBSD: patch-tools_tiff2pdf_c,v 1.4 2011/05/09 08:14:43 giovanni Exp $
|
|
--- tools/tiff2pdf.c.orig Tue Dec 14 02:45:51 2010
|
|
+++ tools/tiff2pdf.c Thu Apr 21 15:35:54 2011
|
|
@@ -895,7 +895,7 @@ T2P* t2p_init()
|
|
if(t2p==NULL){
|
|
TIFFError(
|
|
TIFF2PDF_MODULE,
|
|
- "Can't allocate %u bytes of memory for t2p_init",
|
|
+ "Can't allocate %lu bytes of memory for t2p_init",
|
|
sizeof(T2P));
|
|
return( (T2P*) NULL );
|
|
}
|
|
@@ -1008,7 +1008,7 @@ void t2p_read_tiff_init(T2P* t2p, TIFF* input){
|
|
if(t2p->tiff_pages==NULL){
|
|
TIFFError(
|
|
TIFF2PDF_MODULE,
|
|
- "Can't allocate %u bytes of memory for tiff_pages array, %s",
|
|
+ "Can't allocate %lu bytes of memory for tiff_pages array, %s",
|
|
directorycount * sizeof(T2P_PAGE),
|
|
TIFFFileName(input));
|
|
t2p->t2p_error = T2P_ERR_ERROR;
|
|
@@ -1019,7 +1019,7 @@ void t2p_read_tiff_init(T2P* t2p, TIFF* input){
|
|
if(t2p->tiff_tiles==NULL){
|
|
TIFFError(
|
|
TIFF2PDF_MODULE,
|
|
- "Can't allocate %u bytes of memory for tiff_tiles array, %s",
|
|
+ "Can't allocate %lu bytes of memory for tiff_tiles array, %s",
|
|
directorycount * sizeof(T2P_TILES),
|
|
TIFFFileName(input));
|
|
t2p->t2p_error = T2P_ERR_ERROR;
|
|
@@ -1151,7 +1151,7 @@ void t2p_read_tiff_init(T2P* t2p, TIFF* input){
|
|
if( t2p->tiff_tiles[i].tiles_tiles == NULL){
|
|
TIFFError(
|
|
TIFF2PDF_MODULE,
|
|
- "Can't allocate %u bytes of memory for t2p_read_tiff_init, %s",
|
|
+ "Can't allocate %lu bytes of memory for t2p_read_tiff_init, %s",
|
|
t2p->tiff_tiles[i].tiles_tilecount * sizeof(T2P_TILE),
|
|
TIFFFileName(input));
|
|
t2p->t2p_error = T2P_ERR_ERROR;
|
|
@@ -5143,7 +5143,7 @@ tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* out
|
|
if(t2p->pdf_xrefoffsets==NULL){
|
|
TIFFError(
|
|
TIFF2PDF_MODULE,
|
|
- "Can't allocate %u bytes of memory for t2p_write_pdf",
|
|
+ "Can't allocate %lu bytes of memory for t2p_write_pdf",
|
|
t2p->pdf_xrefcount * sizeof(uint32) );
|
|
return(written);
|
|
}
|