summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-07-17 11:49:56 +0200
committerDave Barach <openvpp@barachs.net>2020-09-02 13:02:02 +0000
commit7d4a997ea1fa93c305873ee1156765adc062cb27 (patch)
tree102ced6075ccd6224292874702e37994cf19929c /src
parenta1a2246eab0269f3ee330d3866fba44e29a31639 (diff)
misc: fix pcap [rx|tx|drop] filename stem overflow
Type: fix Change-Id: I2b6b7b6f28cbf7accf883743e390b0031dd13bbb Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/interface_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/interface_cli.c b/src/vnet/interface_cli.c
index b27d157d18b..bee813f5874 100644
--- a/src/vnet/interface_cli.c
+++ b/src/vnet/interface_cli.c
@@ -2007,7 +2007,7 @@ vnet_pcap_dispatch_trace_configure (vnet_pcap_dispatch_trace_args_t * a)
stem = format (stem, "tx");
if (a->drop_enable)
stem = format (stem, "drop");
- a->filename = format (0, "/tmp/%s.pcap%c", stem, 0);
+ a->filename = format (0, "/tmp/%v.pcap%c", stem, 0);
vec_free (stem);
}