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
Use xbt_strdup instead of strdup
[simgrid.git]
/
src
/
mc
/
mc_process.cpp
diff --git
a/src/mc/mc_process.cpp
b/src/mc/mc_process.cpp
index
381d55b
..
d5234e0
100644
(file)
--- a/
src/mc/mc_process.cpp
+++ b/
src/mc/mc_process.cpp
@@
-480,7
+480,7
@@
char* Process::read_string(remote_ptr<void> address) const
if (!address)
return NULL;
if (this->is_self())
- return strdup((char*) address.address());
+ return
xbt_
strdup((char*) address.address());
off_t len = 128;
char* res = (char*) malloc(len);