aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/svm/svm.c')
-rw-r--r--src/svm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/svm.c b/src/svm/svm.c
index 20f4b7a6e7a..fc917825be6 100644
--- a/src/svm/svm.c
+++ b/src/svm/svm.c
@@ -330,7 +330,7 @@ svm_data_region_create (svm_map_region_args_t * a, svm_region_t * rp)
}
close (fd);
CLIB_MEM_UNPOISON (rp->data_base, map_size);
- rp->backing_file = (char *) format (0, "%s\0", a->backing_file);
+ rp->backing_file = (char *) format (0, "%s%c", a->backing_file, 0);
rp->flags |= SVM_FLAGS_FILE;
}