util-linux/util-linux-addpart-use-atoll.patch

16 lines
593 B
Diff

Index: util-linux-ng-2.17.2/partx/addpart.c
===================================================================
--- util-linux-ng-2.17.2.orig/partx/addpart.c 2010-01-28 15:57:59.000000000 +0100
+++ util-linux-ng-2.17.2/partx/addpart.c 2010-05-11 15:51:26.000000000 +0200
@@ -25,8 +25,8 @@ main(int argc, char **argv){
exit(1);
}
p.pno = atoi(argv[2]);
- p.start = 512 * ((long long) atol(argv[3]));
- p.length = 512 * ((long long) atol(argv[4]));
+ p.start = 512 * atoll(argv[3]);
+ p.length = 512 * atoll(argv[4]);
p.devname[0] = 0;
p.volname[0] = 0;
a.op = BLKPG_ADD_PARTITION;