summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump/hexsyntax.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-09-01 22:42:47 +0000
committerache <ache@FreeBSD.org>2001-09-01 22:42:47 +0000
commit63ed2f311c0410a0be3ded14173b85d28d20aa7c (patch)
tree6ec2469315c71db37efc37266d18fd2092e7fd43 /usr.bin/hexdump/hexsyntax.c
parent2f50c10b5b95be7203fda0612de32a1569095906 (diff)
downloadFreeBSD-src-63ed2f311c0410a0be3ded14173b85d28d20aa7c.zip
FreeBSD-src-63ed2f311c0410a0be3ded14173b85d28d20aa7c.tar.gz
File positions are off_t nowdays, not long, so:
strtol -> strtoll fseek -> fseeko NOTE: that fseek not works for >long offsets files per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long.
Diffstat (limited to 'usr.bin/hexdump/hexsyntax.c')
-rw-r--r--usr.bin/hexdump/hexsyntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/hexdump/hexsyntax.c b/usr.bin/hexdump/hexsyntax.c
index f3bf587..72ec69f 100644
--- a/usr.bin/hexdump/hexsyntax.c
+++ b/usr.bin/hexdump/hexsyntax.c
@@ -104,7 +104,7 @@ newsyntax(argc, argvp)
add("\"%07.7_ax \" 8/2 \" %06o \" \"\\n\"");
break;
case 's':
- if ((skip = strtol(optarg, &p, 0)) < 0)
+ if ((skip = strtoll(optarg, &p, 0)) < 0)
errx(1, "%s: bad skip value", optarg);
switch(*p) {
case 'b':
OpenPOWER on IntegriCloud