aboutsummaryrefslogtreecommitdiff
path: root/util-linux/losetup.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/losetup.c')
-rw-r--r--util-linux/losetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index 8882ee4da..c7eb85a91 100644
--- a/util-linux/losetup.c
+++ b/util-linux/losetup.c
@@ -16,7 +16,7 @@ int losetup_main(int argc, char **argv)
16{ 16{
17 unsigned opt; 17 unsigned opt;
18 char *opt_o; 18 char *opt_o;
19 int offset = 0; 19 unsigned long long offset = 0;
20 20
21 opt = getopt32(argc, argv, "do:", &opt_o); 21 opt = getopt32(argc, argv, "do:", &opt_o);
22 argc -= optind; 22 argc -= optind;
@@ -35,7 +35,7 @@ int losetup_main(int argc, char **argv)
35 } 35 }
36 36
37 if (opt == 0x2) // -o 37 if (opt == 0x2) // -o
38 offset = bb_xparse_number(opt_o, NULL); 38 offset = xatoull(opt_o);
39 39
40 /* -o or no option */ 40 /* -o or no option */
41 41