diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/fsys-options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiskfs/fsys-options.c b/libdiskfs/fsys-options.c index 565836ce..414d9719 100644 --- a/libdiskfs/fsys-options.c +++ b/libdiskfs/fsys-options.c @@ -76,6 +76,7 @@ diskfs_S_fsys_set_options (fsys_t fsys, char **argv = alloca (sizeof (char *) * (argc + 1)); argz_extract (data, len, argv); + argv[argc] = 0; /* Terminate ARGV. */ rwlock_writer_lock (&diskfs_fsys_lock); err = diskfs_set_options (argc, argv); |