From 08958caf56d1a116df536dcd3ea1d688faafbd3c Mon Sep 17 00:00:00 2001 From: Wouter Verhelst Date: Sat, 31 Jan 2009 03:00:55 +0100 Subject: [PATCH] use atoll instead of atol ... so that multi-terabyte exports work, too. --- nbd-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd-server.c b/nbd-server.c index 754d21a..5c35e06 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -442,7 +442,7 @@ SERVER* cmdline(int argc, char *argv[]) { if (suffix == 'k' || suffix == 'K' || suffix == 'm' || suffix == 'M') optarg[last] = '\0'; - es = (off_t)atol(optarg); + es = (off_t)atoll(optarg); switch (suffix) { case 'm': case 'M': es <<= 10; -- 1.7.10.4