From 43522c5f2a12dc0cf3cda733e4fb5c04cd62a154 Mon Sep 17 00:00:00 2001 From: scuri Date: Wed, 19 Aug 2009 18:39:31 +0000 Subject: *** empty log message *** --- src/old_im.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/old_im.cpp') diff --git a/src/old_im.cpp b/src/old_im.cpp index 43a8afb..44a0e1c 100644 --- a/src/old_im.cpp +++ b/src/old_im.cpp @@ -2,7 +2,7 @@ * \brief Old API * * See Copyright Notice in im_lib.h - * $Id: old_im.cpp,v 1.1 2008/10/17 06:10:16 scuri Exp $ + * $Id: old_im.cpp,v 1.2 2009/08/19 18:39:43 scuri Exp $ */ #include @@ -339,7 +339,7 @@ int imSaveRGB(int width, int height, int format, unsigned char *red, unsigned ch { char img_desc[50]; iOldTiffImageDescCB(filename, img_desc); - imFileSetAttribute(ifile, "Description", IM_BYTE, strlen(img_desc)+1, (void*)img_desc); + imFileSetAttribute(ifile, "Description", IM_BYTE, -1, (void*)img_desc); } if (iOldGifTranspIndexCB) @@ -414,7 +414,7 @@ int imSaveMap(int width, int height, int format, unsigned char *map, int palette { char img_desc[50]; iOldTiffImageDescCB(filename, img_desc); - imFileSetAttribute(ifile, "Description", IM_BYTE, strlen(img_desc)+1, (void*)img_desc); + imFileSetAttribute(ifile, "Description", IM_BYTE, -1, (void*)img_desc); } if (iOldGifTranspIndexCB) -- cgit v1.2.3