From: Jens Axboe Date: Sat, 10 Feb 2007 18:01:07 +0000 (+0100) Subject: [PATCH] Size parse should use strtoll() X-Git-Tag: fio-1.12~111 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=675de85a183099071a56b9b2ecd196569f10236a;hp=f4ee22ca72da53e0e891693d16358296b703a684 [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 --- 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;