summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/boot-start.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index a60a1d0e..4cc7bb8d 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -217,8 +217,9 @@ diskfs_start_bootstrap ()
while (*initname == '/')
initname++;
- exec_argvlen = asprintf (&exec_argv, "/%s%c", initname, '\0');
- assert (exec_argvlen != -1);
+ int len = asprintf (&exec_argv, "/%s%c", initname, '\0');
+ assert (len != -1);
+ exec_argvlen = (size_t) len;
err = argz_add_sep (&exec_argv, &exec_argvlen,
diskfs_boot_command_line, ' ');
assert_perror (err);