diff options
author | Benoît Ganne <bganne@cisco.com> | 2020-01-21 18:35:49 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-02-12 00:24:39 +0000 |
commit | aba4983ad48374a50cd93ba91f66be241f210279 (patch) | |
tree | 07e3baf57a38b7253df0a3fe3722aa9359ad2182 | |
parent | 2c8e0023f91882e53f06eb99c901b97fe013f981 (diff) |
api: do not truncate api dump file size
Type: fix
Change-Id: I5c81d2f55057f5fba780cb12154a3fb1aef79f20
Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rwxr-xr-x | src/vlibmemory/vlib_api_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibmemory/vlib_api_cli.c b/src/vlibmemory/vlib_api_cli.c index c79ac2bc75a..c57f333ba68 100755 --- a/src/vlibmemory/vlib_api_cli.c +++ b/src/vlibmemory/vlib_api_cli.c @@ -430,7 +430,7 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename, } file_size = statb.st_size; - file_size = (file_size + 4095) & ~(4096); + file_size = (file_size + 4095) & ~(4095); hp = mmap (0, file_size, PROT_READ, MAP_PRIVATE, fd, 0); |