diff options
Diffstat (limited to 'util-linux/hexdump.c')
-rw-r--r-- | util-linux/hexdump.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c index 9a312f95c..4d998b916 100644 --- a/util-linux/hexdump.c +++ b/util-linux/hexdump.c | |||
@@ -116,7 +116,12 @@ int hexdump_main(int argc, char **argv) | |||
116 | dumper->dump_length = xatoi_positive(optarg); | 116 | dumper->dump_length = xatoi_positive(optarg); |
117 | } /* else */ | 117 | } /* else */ |
118 | if (ch == 's') { /* compat: -s accepts hex numbers too */ | 118 | if (ch == 's') { /* compat: -s accepts hex numbers too */ |
119 | dumper->dump_skip = xstrtoul_range_sfx(optarg, /*base:*/ 0, /*lo:*/ 0, /*hi:*/ LONG_MAX, suffixes); | 119 | dumper->dump_skip = xstrtoull_range_sfx( |
120 | optarg, | ||
121 | /*base:*/ 0, | ||
122 | /*lo:*/ 0, /*hi:*/ OFF_T_MAX, | ||
123 | suffixes | ||
124 | ); | ||
120 | } /* else */ | 125 | } /* else */ |
121 | if (ch == 'v') { | 126 | if (ch == 'v') { |
122 | dumper->dump_vflag = ALL; | 127 | dumper->dump_vflag = ALL; |