Check parseoffset return value in od(1)
Yeah, kinda embarassing. Forgot about that.
This commit is contained in:
parent
fc886aa144
commit
8163451249
6
od.c
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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user