summaryrefslogtreecommitdiff
path: root/src/old_im.cpp
diff options
context:
space:
mode:
authorscuri <scuri>2009-08-19 18:39:31 +0000
committerscuri <scuri>2009-08-19 18:39:31 +0000
commit43522c5f2a12dc0cf3cda733e4fb5c04cd62a154 (patch)
tree898c6d10776a5e8e50dc93c7c51d334e5bc79cb3 /src/old_im.cpp
parent40b9c00bf632734a5871c78d58c7661f1b0988a0 (diff)
*** empty log message ***
Diffstat (limited to 'src/old_im.cpp')
-rw-r--r--src/old_im.cpp6
1 files changed, 3 insertions, 3 deletions
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 <stdlib.h>
@@ -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)