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/im_attrib.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/im_attrib.cpp') diff --git a/src/im_attrib.cpp b/src/im_attrib.cpp index a1b95b7..90c007e 100644 --- a/src/im_attrib.cpp +++ b/src/im_attrib.cpp @@ -2,7 +2,7 @@ * \brief Attributes Table * * See Copyright Notice in im_lib.h - * $Id: im_attrib.cpp,v 1.1 2008/10/17 06:10:16 scuri Exp $ + * $Id: im_attrib.cpp,v 1.2 2009/08/19 18:39:43 scuri Exp $ */ #include @@ -152,6 +152,9 @@ void imAttribTableSet(imAttribTablePrivate* ptable, const char* name, int data_t int index = iHashIndex(name, ptable->hash_size); imAttribNode* first_node = ptable->hash_table[index]; + if (data_type == 0 && count == -1) /* BYTE */ + count = strlen((char*)data)+1; + // The name already exists ? imAttribNode* cur_node = first_node; imAttribNode* prev_node = NULL; -- cgit v1.2.3