diff options
Diffstat (limited to 'libtiff/tif_codec.c')
-rw-r--r-- | libtiff/tif_codec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libtiff/tif_codec.c b/libtiff/tif_codec.c index d5c6fd11..5a38184f 100644 --- a/libtiff/tif_codec.c +++ b/libtiff/tif_codec.c @@ -1,4 +1,4 @@ -/* $Id: tif_codec.c,v 1.10.2.2 2010-06-08 18:50:41 bfriesen Exp $ */ +/* $Id: tif_codec.c,v 1.10.2.3 2013-05-02 14:44:43 tgl Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -104,7 +104,8 @@ _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 ); + snprintf(compression_code, sizeof(compression_code), "%d", + tif->tif_dir.td_compression ); TIFFErrorExt(tif->tif_clientdata, tif->tif_name, "%s compression support is not configured", c ? c->name : compression_code ); |