summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d529f73)
raw | patch | inline | side by side (parent: d529f73)
author | Taras Chornyi <tarasx.chornyi@intel.com> | |
Mon, 6 Mar 2017 16:52:49 +0000 (16:52 +0000) | ||
committer | Taras Chornyi <tarasx.chornyi@intel.com> | |
Mon, 6 Mar 2017 16:52:49 +0000 (16:52 +0000) |
would not be truncated before the last format character
Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
src/ovs_stats.c | patch | blob | history |
diff --git a/src/ovs_stats.c b/src/ovs_stats.c
index 7d775284fbea7b38e3b71798aa8a6786adf78ec2..1641e87559cd2d53f011cf6a6e4c4f803ccd648f 100644 (file)
--- a/src/ovs_stats.c
+++ b/src/ovs_stats.c
static int ovs_stats_plugin_read(__attribute__((unused)) user_data_t *ud) {
bridge_list_t *bridge;
port_list_t *port;
- char devname[PORT_NAME_SIZE_MAX];
+ char devname[PORT_NAME_SIZE_MAX * 2];
pthread_mutex_lock(&g_stats_lock);
for (bridge = g_bridge_list_head; bridge != NULL; bridge = bridge->next) {