Check parseoffset return value in od(1)

Yeah, kinda embarassing. Forgot about that.
This commit is contained in:
FRIGN
2015-09-30 19:13:32 +02:00
committed by sin
부모 fc886aa144
커밋 8163451249

6
od.c
파일 보기

@@ -118,10 +118,12 @@ main(int argc, char *argv[])
radix = s[0];
break;
case 'j':
skip = parseoffset(EARGF(usage()));
if ((skip = parseoffset(EARGF(usage()))) < 0)
return 1;
break;
case 'N':
maxbytes = parseoffset(EARGF(usage()));
if ((maxbytes = parseoffset(EARGF(usage()))) < 0)
return 1;
break;
case 't':
s = EARGF(usage());