From 0d9ea3a955d24a4793f5351baec68ec7d397b78f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 19 Mar 2020 23:17:41 +0100 Subject: Fix: properly terminate the getopt_long arrays Signed-off-by: David Oberhollenzer --- tar/sqfs2tar.c | 1 + tar/tar2sqfs.c | 1 + 2 files changed, 2 insertions(+) (limited to 'tar') diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c index 925ae9c..cdad066 100644 --- a/tar/sqfs2tar.c +++ b/tar/sqfs2tar.c @@ -25,6 +25,7 @@ static struct option long_opts[] = { { "no-hard-links", no_argument, NULL, 'L' }, { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, + { NULL, 0, NULL, 0 }, }; static const char *short_opts = "d:kr:sXLhV"; diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c index 5c18312..6186930 100644 --- a/tar/tar2sqfs.c +++ b/tar/tar2sqfs.c @@ -37,6 +37,7 @@ static struct option long_opts[] = { { "quiet", no_argument, NULL, 'q' }, { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, + { NULL, 0, NULL, 0 }, }; static const char *short_opts = "r:c:b:B:d:X:j:Q:sxekfqThV"; -- cgit v1.2.3