Hi, this patch fixes https://bugzilla.novell.com/show_bug.cgi?id=603328 Regards, Petr From: Thomas Fehr <fehr@xxxxxxx> Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx> --- partx/addpart.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/partx/addpart.c b/partx/addpart.c index 004fee5..112a286 100644 --- a/partx/addpart.c +++ b/partx/addpart.c @@ -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; -- 1.6.4.2 Petr -- Petr Uzel IRC: ptr_uzl @ freenode
Attachment:
pgpOU8lfA7Ieb.pgp
Description: PGP signature