diff options
-rw-r--r-- | util-linux/hexdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c index f3878f44f..2eb5e57ae 100644 --- a/util-linux/hexdump.c +++ b/util-linux/hexdump.c | |||
@@ -92,8 +92,8 @@ int hexdump_main(int argc, char **argv) | |||
92 | if (ch == 'n') { | 92 | if (ch == 'n') { |
93 | dumper->dump_length = xatoi_u(optarg); | 93 | dumper->dump_length = xatoi_u(optarg); |
94 | } /* else */ | 94 | } /* else */ |
95 | if (ch == 's') { | 95 | if (ch == 's') { /* compat: -s accepts hex numbers too */ |
96 | dumper->dump_skip = xatoul_range_sfx(optarg, 0, LONG_MAX, suffixes); | 96 | dumper->dump_skip = xstrtoul_range_sfx(optarg, /*base:*/ 0, /*lo:*/ 0, /*hi:*/ LONG_MAX, suffixes); |
97 | } /* else */ | 97 | } /* else */ |
98 | if (ch == 'v') { | 98 | if (ch == 'v') { |
99 | dumper->dump_vflag = ALL; | 99 | dumper->dump_vflag = ALL; |