From 6c39dd63dc4f91b358155c173a2cfdf4c6c5af3e Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 21 Aug 2009 04:01:59 +0000 Subject: *** empty log message *** --- src/libtiff/tif_codec.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/libtiff/tif_codec.c') diff --git a/src/libtiff/tif_codec.c b/src/libtiff/tif_codec.c index 377e083..6f7099f 100644 --- a/src/libtiff/tif_codec.c +++ b/src/libtiff/tif_codec.c @@ -1,4 +1,4 @@ -/* $Id: tif_codec.c,v 1.1 2008/10/17 06:16:07 scuri Exp $ */ +/* $Id: tif_codec.c,v 1.2 2009/08/21 04:01:59 scuri Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -102,9 +102,12 @@ static int _notConfigured(TIFF* tif) { const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); - + char compression_code[20]; + + sprintf( compression_code, "%d", tif->tif_dir.td_compression ); TIFFErrorExt(tif->tif_clientdata, tif->tif_name, - "%s compression support is not configured", c->name); + "%s compression support is not configured", + c ? c->name : compression_code ); return (0); } -- cgit v1.2.3