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
parent fc886aa144
commit 8163451249

6
od.c
View File

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