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
Replace sprintf by snprintf.
[simgrid.git]
/
src
/
surf
/
ns3
/
ns3_simulator.h
diff --git
a/src/surf/ns3/ns3_simulator.h
b/src/surf/ns3/ns3_simulator.h
index
8cec673
..
1114a72
100644
(file)
--- a/
src/surf/ns3/ns3_simulator.h
+++ b/
src/surf/ns3/ns3_simulator.h
@@
-44,7
+44,7
@@
static inline const char *transformSocketPtr (ns3::Ptr<ns3::Socket> localSocket)
static char key[24];
std::stringstream sstream;
sstream << localSocket ;
- s
printf(key
,"%s",sstream.str().c_str());
+ s
nprintf(key,24
,"%s",sstream.str().c_str());
return key;
}