sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit e6dc397f0636b3e6059499b5d9834cba1273a4bb
parent 7bd6ebfae36273968c41ed8783b22e77c267259d
Author: FRIGN <dev@frign.de>
Date:   Wed Sep 30 19:13:32 +0200

Check parseoffset return value in od(1)

Yeah, kinda embarassing. Forgot about that.

Diffstat:
od.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/od.c b/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());