diff options
author | Karel Zak | 2012-03-21 19:35:22 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-21 19:35:22 +0100 |
commit | 807e40c6557ecf52a668b08df0f528bbcdcb33d4 (patch) | |
tree | 31aff60fadfcbb19b5cd56ea97c99d269ddbf396 /text-utils/hexdump.c | |
parent | libblkid: generate pseudo-UUID for ISO9660 image file (diff) | |
download | kernel-qcow2-util-linux-807e40c6557ecf52a668b08df0f528bbcdcb33d4.tar.gz kernel-qcow2-util-linux-807e40c6557ecf52a668b08df0f528bbcdcb33d4.tar.xz kernel-qcow2-util-linux-807e40c6557ecf52a668b08df0f528bbcdcb33d4.zip |
hexdump: use strtosize() for -n and -s
strtosize() is based on uintmax_t and supports all possible suffixes
(B,M,G,T ...)
Reported-by: Simon de Vlieger <simon@ikanobori.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r-- | text-utils/hexdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c index 553220d89..7edb053db 100644 --- a/text-utils/hexdump.c +++ b/text-utils/hexdump.c @@ -47,7 +47,7 @@ FS *fshead; /* head of format strings */ int blocksize; /* data block size */ int exitval; /* final exit value */ -int length = -1; /* max bytes to read */ +ssize_t length = -1; /* max bytes to read */ int main(int argc, char **argv) { |