forked from pool/util-linux
0f39ada30b
Copy from Base:System/util-linux based on submit request 39808 from user puzel OBS-URL: https://build.opensuse.org/request/show/39808 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=90
16 lines
593 B
Diff
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;
|