aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlollita liu <lollita.liu@ericsson.com>2018-06-13 05:14:02 -0400
committerDamjan Marion <dmarion@me.com>2018-06-13 11:03:01 +0000
commiteaba9340dab289109106bed3a0d4c76496e496e5 (patch)
treee1e1bd82d91368c9f8abc82c99f52710ed65b947 /src
parent6edd36070cbe5f1fb5e5804edb19f8c395ba07f2 (diff)
add end of string for format name in unix_physmem_region_alloc
Change-Id: I8cb4d5d90fb321de6e5037a3d0440507db79ec75 Signed-off-by: lollita liu <lollita.liu@ericsson.com>
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--]src/vlib/linux/physmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/linux/physmem.c b/src/vlib/linux/physmem.c
index b247efc9a85..a708aaec778 100644..100755
--- a/src/vlib/linux/physmem.c
+++ b/src/vlib/linux/physmem.c
@@ -159,7 +159,7 @@ unix_physmem_region_alloc (vlib_main_t * vm, char *name, u32 size,
pr->size = (u64) pr->n_pages << (u64) pr->log2_page_size;
pr->page_mask = (1 << pr->log2_page_size) - 1;
pr->numa_node = numa_node;
- pr->name = format (0, "%s", name);
+ pr->name = format (0, "%s%c", name, 0);
for (i = 0; i < pr->n_pages; i++)
{