projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3055ca
)
use atoll instead of atol
author
Wouter Verhelst <w@uter.be>
Sat, 31 Jan 2009 02:00:55 +0000
(
03:00
+0100)
committer
Wouter Verhelst <w@uter.be>
Sat, 31 Jan 2009 02:00:55 +0000
(
03:00
+0100)
... so that multi-terabyte exports work, too.
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index
754d21a
..
5c35e06
100644
(file)
--- 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;