git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
app/test: fix buffer overflow
[dpdk.git]
/
app
/
test
/
commands.c
diff --git
a/app/test/commands.c
b/app/test/commands.c
index
9cb9606
..
e0af8e4
100644
(file)
--- a/
app/test/commands.c
+++ b/
app/test/commands.c
@@
-439,7
+439,7
@@
int commands_init(void)
commands_len += strlen(t->command) + 1;
}
- commands = malloc(commands_len);
+ commands = malloc(commands_len
+ 1
);
if (!commands)
return -1;