From a0cc5ab6d4873164bcb6cdae02b928e49553d13a Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Fri, 23 Feb 2018 12:09:41 -0500 Subject: Convert a pcap file to a set of C initializers Change-Id: Ieb6b7a75fa23c8142ae15f42cd3a703253f39e10 Signed-off-by: Dave Barach --- src/vnet/unix/pcap2pg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/unix/pcap2pg.c') diff --git a/src/vnet/unix/pcap2pg.c b/src/vnet/unix/pcap2pg.c index 46d6bfcd0c7..712907a5bac 100644 --- a/src/vnet/unix/pcap2pg.c +++ b/src/vnet/unix/pcap2pg.c @@ -164,7 +164,7 @@ main (int argc, char **argv) if (output_file) { - ofp = fopen ((char *) output_file, "rw"); + ofp = fopen ((char *) output_file, "w+"); if (ofp == NULL) clib_unix_warning ("Couldn't create '%s'", output_file); exit (1); -- cgit 1.2.3-korg