Code Review
/
sim
/
e2-interface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Change memory allocation from heap to stack
[sim/e2-interface.git]
/
e2sim
/
src
/
base
/
e2sim.cpp
diff --git
a/e2sim/src/base/e2sim.cpp
b/e2sim/src/base/e2sim.cpp
old mode 100644
(file)
new mode 100755
(executable)
index
372cc9d
..
852cbdd
--- a/
e2sim/src/base/e2sim.cpp
+++ b/
e2sim/src/base/e2sim.cpp
@@
-165,7
+165,7
@@
int E2Sim::run_loop(int argc, char* argv[]){
sctp_buffer_t data;
- char
*error_buf = (char*)calloc(300, sizeof(char))
;
+ char
error_buf[300] = {0, }
;
size_t errlen;
asn_check_constraints(&asn_DEF_E2AP_PDU, pdu_setup, error_buf, &errlen);