A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[trace] use xbt_strdup to copy category
[simgrid.git]
/
src
/
instr
/
instr_surf.c
diff --git
a/src/instr/instr_surf.c
b/src/instr/instr_surf.c
index
e2c2d93
..
bfec1b8
100644
(file)
--- 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;
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 */
}
#endif /* HAVE_TRACING */