diff options
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | errno.c | 1 | ||||
-rw-r--r-- | isutf8.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index ccf3c16..96ba19a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ moreutils (0.49) UNRELEASED; urgency=low * ts: Fix timezone used with -i + * errno, isutf8: Fix zero-termination of option list, which could lead + to getopt crash. Closes: #715867 + (Thanks, Mayhem Team) -- Joey Hess <joeyh@debian.org> Sun, 05 May 2013 11:20:57 -0400 @@ -133,6 +133,7 @@ options[] = { { "list", 0, NULL, 'l' }, { "search", 0, NULL, 's' }, { "search-all-locales", 0, NULL, 'S' }, + { 0, 0, 0, 0 } }; @@ -227,6 +227,7 @@ int main(int argc, char **argv) { struct option options[] = { { "help", no_argument, NULL, 'h' }, { "quiet", no_argument, &quiet, 1 }, + { 0, 0, 0, 0 } }; int opt; |