aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--options.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d9ae9bd..6ba746a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20140111
+VERSION = git-20140115
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
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);
}