git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81bd65f
)
examples/ip_pipeline: fix buffer copy size
author
Fan Zhang
<roy.fan.zhang@intel.com>
Fri, 11 Dec 2015 17:19:16 +0000
(17:19 +0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Sun, 13 Dec 2015 01:35:05 +0000
(
02:35
+0100)
Coverity issue: 107133
Fixes:
eb32fe7c5574
("examples/ip_pipeline: rework initialization parameters")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/init.c
patch
|
blob
|
history
diff --git
a/examples/ip_pipeline/init.c
b/examples/ip_pipeline/init.c
index
bc6d6d9
..
186ca03
100644
(file)
--- a/
examples/ip_pipeline/init.c
+++ b/
examples/ip_pipeline/init.c
@@
-1068,7
+1068,7
@@
static void app_pipeline_params_get(struct app_params *app,
uint32_t i;
uint32_t mempool_id;
- s
trcpy(p_out->name
, p_in->name);
+ s
nprintf(p_out->name, PIPELINE_NAME_SIZE, "%s"
, p_in->name);
p_out->socket_id = (int) p_in->socket_id;