hexdump: need to use xstrtoull for off_t
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Mar 2013 14:18:32 +0000 (15:18 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Mar 2013 14:18:32 +0000 (15:18 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/hexdump.c

index 43fc188bf1abfec32cbc0b0fd9e7b863814c2bf3..4d998b916946e79641461a503e92709455627f2a 100644 (file)
@@ -116,7 +116,7 @@ int hexdump_main(int argc, char **argv)
                        dumper->dump_length = xatoi_positive(optarg);
                } /* else */
                if (ch == 's') { /* compat: -s accepts hex numbers too */
-                       dumper->dump_skip = xstrtoul_range_sfx(
+                       dumper->dump_skip = xstrtoull_range_sfx(
                                optarg,
                                /*base:*/ 0,
                                /*lo:*/ 0, /*hi:*/ OFF_T_MAX,