summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CommandListener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CommandListener.cpp b/CommandListener.cpp
index 6aa78bc..6d19fd5 100644
--- a/CommandListener.cpp
+++ b/CommandListener.cpp
@@ -391,7 +391,7 @@ int CommandListener::AsecCmd::runCommand(SocketClient *cli,
return 0;
}
- unsigned int numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512;
+ unsigned int numSectors = ((atoi(argv[3])+1) * (1024 * 1024)) / 512;
const bool isExternal = (atoi(argv[7]) == 1);
rc = vm->createAsec(argv[2], numSectors, argv[4], argv[5], atoi(argv[6]), isExternal);
} else if (!strcmp(argv[1], "resize")) {