diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-28 16:37:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-01-28 16:37:10 +0000 |
commit | 55b8488cba75efc02fbf27894891e6597496e36b (patch) | |
tree | 9926ec26ec29e016ffccd4a715c17baac06178c5 /usr.bin/hexdump/hexdump.h | |
parent | fe0ec35eadd3b867b0144c619fb6b0b9cccb7cd1 (diff) |
Accept a leading 0x for the -n length parameter.
Correctly check for out-of-bounds values for -s skip parameter, and use
strtoll to parse it instead of strtol since this is an off_t value.
Diffstat (limited to 'usr.bin/hexdump/hexdump.h')
-rw-r--r-- | usr.bin/hexdump/hexdump.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/hexdump/hexdump.h b/usr.bin/hexdump/hexdump.h index 17c41061ba5..440b94e8132 100644 --- a/usr.bin/hexdump/hexdump.h +++ b/usr.bin/hexdump/hexdump.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hexdump.h,v 1.7 2003/06/03 02:56:09 millert Exp $ */ +/* $OpenBSD: hexdump.h,v 1.8 2007/01/28 16:37:09 miod Exp $ */ /* $NetBSD: hexdump.h,v 1.7 2001/12/07 15:14:29 bjh21 Exp $ */ /* @@ -76,7 +76,7 @@ extern int deprecated; /* od compatibility */ extern FU *endfu; /* format at end-of-data */ extern int exitval; /* final exit value */ extern FS *fshead; /* head of format strings list */ -extern int length; /* max bytes to read */ +extern long length; /* max bytes to read */ extern off_t skip; /* bytes to skip */ extern enum _vflag vflag; |