summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
authorKarel Zak2012-03-21 19:35:22 +0100
committerKarel Zak2012-03-21 19:35:22 +0100
commit807e40c6557ecf52a668b08df0f528bbcdcb33d4 (patch)
tree31aff60fadfcbb19b5cd56ea97c99d269ddbf396 /text-utils/hexdump.c
parentlibblkid: generate pseudo-UUID for ISO9660 image file (diff)
downloadkernel-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.c2
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)
{