diff options
| author | scuri <scuri> | 2009-08-19 18:39:31 +0000 | 
|---|---|---|
| committer | scuri <scuri> | 2009-08-19 18:39:31 +0000 | 
| commit | 43522c5f2a12dc0cf3cda733e4fb5c04cd62a154 (patch) | |
| tree | 898c6d10776a5e8e50dc93c7c51d334e5bc79cb3 /src/im_attrib.cpp | |
| parent | 40b9c00bf632734a5871c78d58c7661f1b0988a0 (diff) | |
*** empty log message ***
Diffstat (limited to 'src/im_attrib.cpp')
| -rw-r--r-- | src/im_attrib.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| 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 <stdlib.h> @@ -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; | 
