From 675de85a183099071a56b9b2ecd196569f10236a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 10 Feb 2007 19:01:07 +0100 Subject: [PATCH 1/1] [PATCH] Size parse should use strtoll() It's a 64-bit quantity, found out when the size= option quit too early for large non-postfixed values. Signed-off-by: Jens Axboe --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index cab6ca72..b09f20d7 100644 --- a/parse.c +++ b/parse.c @@ -56,7 +56,7 @@ static int str_to_decimal(const char *str, long long *val, int kilo) if (!len) return 1; - *val = strtol(str, NULL, 10); + *val = strtoll(str, NULL, 10); if (*val == LONG_MAX && errno == ERANGE) return 1; -- 2.25.1