From: Thomas Fehr Date: Tue, 11 May 2010 15:09:46 +0000 (+0200) Subject: addpart: use atoll() for parsing command line arguments X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b425b18b73a8af205ee5aa25057005df05862ae4;p=util-linux 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 --- 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;