From b425b18b73a8af205ee5aa25057005df05862ae4 Mon Sep 17 00:00:00 2001 From: Thomas Fehr Date: Tue, 11 May 2010 17:09:46 +0200 Subject: [PATCH] addpart: use atoll() for parsing command line arguments Addresses: http://bugzilla.novell.com/show_bug.cgi?id=603328 Signed-off-by: Petr Uzel Signed-off-by: Karel Zak --- partx/addpart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partx/addpart.c b/partx/addpart.c index 004fee53..112a2860 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; -- 2.39.5