X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dc0f34684e609a2c90793146c1c61f8b81ac801d..a07e7048bfbd06505a29ba5e3a981bec2c4f90de:/src/instr/instr_surf.c diff --git a/src/instr/instr_surf.c b/src/instr/instr_surf.c index e2c2d93536..bfec1b8b9b 100644 --- a/src/instr/instr_surf.c +++ b/src/instr/instr_surf.c @@ -270,7 +270,6 @@ void TRACE_surf_action(surf_action_t surf_action, const char *category) if (!category) return; - surf_action->category = xbt_new(char, strlen(category) + 1); - strncpy(surf_action->category, category, strlen(category) + 1); + surf_action->category = xbt_strdup(category); } #endif /* HAVE_TRACING */