소스 검색

Fixed -z option argument parsing; fixes issue #127

master
Bert Münnich 11 년 전
부모
커밋
03b1d7cf7a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -1
      Makefile
  2. +1
    -1
      options.c

+ 1
- 1
Makefile 파일 보기

@@ -1,4 +1,4 @@
VERSION = git-20140111
VERSION = git-20140115

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man


+ 1
- 1
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);
}


불러오는 중...
취소
저장