From 7d4a997ea1fa93c305873ee1156765adc062cb27 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Fri, 17 Jul 2020 11:49:56 +0200 Subject: misc: fix pcap [rx|tx|drop] filename stem overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: fix Change-Id: I2b6b7b6f28cbf7accf883743e390b0031dd13bbb Signed-off-by: Benoît Ganne --- src/vnet/interface_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit 1.2.3-korg