Krolyxon
Commit 03b1d7c

Branches

Refs →

nsxiv03b1d7c

Fixed -z option argument parsing; fixes issue #127

Author
Bert Münnich
Date
2014-01-15 21:53 +0100
Parent
ed69b48
Commit
03b1d7cf7a1c1e859674ca6f69999e14b9346eac

+2 −2

2 files changed

  1. M Makefile +1 −1
  2. M options.c +1 −1
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20140111
1+VERSION = git-20140115
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M options.c View
@@ -147,7 +147,7 @@ void parse_options(int argc, char **argv)
147147 break;
148148 case 'z':
149149 n = strtol(optarg, &end, 0);
150− if (*end != '\n' || n <= 0) {
150+ if (*end != '\0' || n <= 0) {
151151 fprintf(stderr, "sxiv: invalid argument for option -z: %s\n", optarg);
152152 exit(EXIT_FAILURE);
153153 }