add end of string for format name in unix_physmem_region_alloc
Change-Id: I8cb4d5d90fb321de6e5037a3d0440507db79ec75
Signed-off-by: lollita liu <lollita.liu@ericsson.com>
diff --git a/src/vlib/linux/physmem.c b/src/vlib/linux/physmem.c
old mode 100644
new mode 100755
index b247efc..a708aae
--- a/src/vlib/linux/physmem.c
+++ b/src/vlib/linux/physmem.c
@@ -159,7 +159,7 @@
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++)
{