Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
revert last change trying to inject the \0 after the name, since it was mainly cosmet...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 3 Jul 2004 23:30:56 +0000 (23:30 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 3 Jul 2004 23:30:56 +0000 (23:30 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@159 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/set.c

index da86253..47ef8d3 100644 (file)
@@ -74,7 +74,7 @@ gras_error_t gras_set_add    (gras_set_t     *set,
   gras_set_elm_t *found_in_dict;
 
   if (elm->name_len <= 0) {
   gras_set_elm_t *found_in_dict;
 
   if (elm->name_len <= 0) {
-    elm->name_len = strlen(elm->name)+1;
+    elm->name_len = strlen(elm->name);
   }
 
   errcode = gras_dict_get_ext (set->dict, 
   }
 
   errcode = gras_dict_get_ext (set->dict, 
@@ -111,7 +111,7 @@ gras_error_t gras_set_get_by_name    (gras_set_t     *set,
                                      const char     *name,
                                      /* OUT */gras_set_elm_t **dst) {
 
                                      const char     *name,
                                      /* OUT */gras_set_elm_t **dst) {
 
-  return gras_dict_get_ext(set->dict, name, strlen(name)+1, (void**) dst);
+  return gras_dict_get_ext(set->dict, name, strlen(name), (void**) dst);
 }
 /**
  * gras_set_get_by_name_ext:
 }
 /**
  * gras_set_get_by_name_ext: