diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-01-15 21:53:09 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-01-15 21:53:09 +0100 |
commit | 03b1d7cf7a1c1e859674ca6f69999e14b9346eac (patch) | |
tree | 19da9e643001255213d37dad9d818890541abcfb /options.c | |
parent | ed69b483ed9d37818f483ccc9340ca7c197724d5 (diff) | |
download | nsxiv-03b1d7cf7a1c1e859674ca6f69999e14b9346eac.tar.zst |
Fixed -z option argument parsing; fixes issue #127
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |