VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 13:10:01 +0200
committerGitHub <noreply@github.com>2016-08-15 13:10:01 +0200
commit2db742f465be1527cbf5d6a1b64d9dba89c3eaf5 (patch)
tree859c946288441c22417054ca34b34b7da21998cc /src/Main
parent8bc8f7c66ee210a71a1e5730b676a0472006cb97 (diff)
parent1a8ce8a6112e4f74bc93f6d1a524086385b23b34 (diff)
downloadVeraCrypt-2db742f465be1527cbf5d6a1b64d9dba89c3eaf5.tar.gz
VeraCrypt-2db742f465be1527cbf5d6a1b64d9dba89c3eaf5.zip
Merge pull request #75 from oceanBT/revert-66-patch-1
Linux: added TiB support to text mode.
Diffstat (limited to 'src/Main')
-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 035e458e..32c34fd3 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
{