From 47ff8b2832ba23f3166b45cb4233c97a3fdcabda Mon Sep 17 00:00:00 2001 From: Stevie Strickland Date: Sat, 1 Oct 2016 12:34:53 -0400 Subject: [PATCH] Put NULL-named entry at end of getopt long options array. Fixes #10. --- Changelog | 3 +++ main.c | 3 ++- version.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 8afb09c..36e40e3 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +v1.16 - 1 October 2016 + - Addresses https://github.com/sstrickl/rolldice/issues/10. + v1.15 - 16 October 2015 - Merging in pull requests from Github by Thomas Ross and Shea Polansky to fix formatting and various issues in the build process/program. diff --git a/main.c b/main.c index 7690508..d953954 100644 --- a/main.c +++ b/main.c @@ -21,7 +21,8 @@ struct option long_opts[] = {{"help", 0, NULL, 'h'}, {"random", 0, NULL, 'r'}, {"urandom", 0, NULL, 'u'}, {"separate", 0, NULL, 's'}, - {"interactive", 0, NULL, 'i'}}; + {"interactive", 0, NULL, 'i'}, + {NULL, 0, NULL, 0}}; /* For getopt usage */ extern int optind; diff --git a/version.h b/version.h index 8c5b3c8..a7bcdbf 100644 --- a/version.h +++ b/version.h @@ -7,4 +7,4 @@ /* The version number :) */ static const int MAJOR_VERSION = 1; -static const int MINOR_VERSION = 15; +static const int MINOR_VERSION = 16;