Skip to content

Commit 5ae7413

Browse files
dmarionmgsmith1000
authored andcommitted
vlib: fix missing null-termination
Type: fix Change-Id: I65c26518bad89a107510af1c7796edb9eaf56057 Signed-off-by: Damjan Marion <[email protected]>
1 parent ca4467d commit 5ae7413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vlib/unix/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ unix_config (vlib_main_t * vm, unformat_input_t * input)
505505
{
506506
char cwd[PATH_MAX];
507507
if (getcwd (cwd, PATH_MAX))
508-
um->runtime_dir = format (um->runtime_dir, "%s", cwd);
508+
um->runtime_dir = format (um->runtime_dir, "%s%c", cwd, 0);
509509
}
510510

511511
if (um->runtime_dir == 0)

0 commit comments

Comments
 (0)