Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
ecb1634
)
dpdk: fix non-NULL terminated string
72/23672/2
author
Benoît Ganne
<bganne@cisco.com>
Tue, 19 Nov 2019 12:40:48 +0000
(13:40 +0100)
committer
Dave Barach
<openvpp@barachs.net>
Sun, 1 Dec 2019 12:54:54 +0000
(12:54 +0000)
Type: fix
Change-Id: Ic221cd4fcad89aece71239ed96152bf0311f3286
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit
ab9b9a5c0e3257136701cde6cdfdc66c35bf8f3d
)
src/plugins/dpdk/device/init.c
patch
|
blob
|
history
diff --git
a/src/plugins/dpdk/device/init.c
b/src/plugins/dpdk/device/init.c
index
91f74a6
..
b5f0ec7
100644
(file)
--- a/
src/plugins/dpdk/device/init.c
+++ b/
src/plugins/dpdk/device/init.c
@@
-181,7
+181,7
@@
check_l3cache ()
u8 *p = NULL;
int level_cache = -1;
- p = format (p, "%s/%s/%s
", sys_cache_dir, dp->d_name, "level"
);
+ p = format (p, "%s/%s/%s
%c", sys_cache_dir, dp->d_name, "level", 0
);
if ((err = clib_sysfs_read ((char *) p, "%d", &level_cache)))
clib_error_free (err);