- act->category = xbt_new (char, strlen (category)+1);
- strncpy (act->category, category, strlen(category)+1);
+ act->category = xbt_new (char, strlen (category)+1);
+ strncpy (act->category, category, strlen(category)+1);
- act->category = xbt_new (char, strlen (category)+1);
- strncpy (act->category, category, strlen(category)+1);
+ act->category = xbt_strdup (category);