diff options
author | Miles Bader <miles@gnu.org> | 1996-05-22 19:06:06 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-22 19:06:06 +0000 |
commit | 8c85578c276d2f98d9e1a598264856083e55d154 (patch) | |
tree | 3794a2ad1bd37b28ee26fe4441645bb0e2ee1164 /libdiskfs | |
parent | 4d448309d625e81347500c961f3e219040d84e84 (diff) |
(diskfs_S_fsys_set_options): Terminate ARGV.
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); |