VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/TextUserInterface.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 11:10:01 (GMT)
committerGitHub <noreply@github.com>2016-08-15 11:10:01 (GMT)
commit2db742f465be1527cbf5d6a1b64d9dba89c3eaf5 (patch)
tree859c946288441c22417054ca34b34b7da21998cc /src/Main/TextUserInterface.cpp
parent8bc8f7c66ee210a71a1e5730b676a0472006cb97 (diff)
parent1a8ce8a6112e4f74bc93f6d1a524086385b23b34 (diff)
downloadVeraCrypt-2db742f465be1527cbf5d6a1b64d9dba89c3eaf5.zip
VeraCrypt-2db742f465be1527cbf5d6a1b64d9dba89c3eaf5.tar.gz
Merge pull request #75 from oceanBT/revert-66-patch-1
Linux: added TiB support to text mode.
Diffstat (limited to 'src/Main/TextUserInterface.cpp')
-rw-r--r--src/Main/TextUserInterface.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp
index 035e458..32c34fd 100644
--- a/src/Main/TextUserInterface.cpp
+++ b/src/Main/TextUserInterface.cpp
@@ -638,6 +638,11 @@ namespace VeraCrypt
multiplier = 1024 * 1024 * 1024;
sizeStr.resize (sizeStr.size() - 1);
}
+ else if (sizeStr.find (L"T") != string::npos)
+ {
+ multiplier = 1024 * 1024 * 1024 * 1024;
+ sizeStr.resize (sizeStr.size() - 1);
+ }
try
{