From 03b1d7cf7a1c1e859674ca6f69999e14b9346eac Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Wed, 15 Jan 2014 21:53:09 +0100 Subject: Fixed -z option argument parsing; fixes issue #127 --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options.c') diff --git a/options.c b/options.c index 6753050..5e6ac02 100644 --- a/options.c +++ b/options.c @@ -147,7 +147,7 @@ void parse_options(int argc, char **argv) break; case 'z': n = strtol(optarg, &end, 0); - if (*end != '\n' || n <= 0) { + if (*end != '\0' || n <= 0) { fprintf(stderr, "sxiv: invalid argument for option -z: %s\n", optarg); exit(EXIT_FAILURE); } -- cgit v1.2.3-54-g00ecf