VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/TextUserInterface.cpp
diff options
context:
space:
mode:
authoroceanBT <matthiaswenskus@gmail.com>2016-06-23 21:53:24 +0200
committerGitHub <noreply@github.com>2016-06-23 21:53:24 +0200
commit1a8ce8a6112e4f74bc93f6d1a524086385b23b34 (patch)
tree86ea2776a967f221d5c0066390e1caab2c78e4ed /src/Main/TextUserInterface.cpp
parent438753522ec1d8a6cf2704532af2b2e5e45cb7bb (diff)
downloadVeraCrypt-1a8ce8a6112e4f74bc93f6d1a524086385b23b34.tar.gz
VeraCrypt-1a8ce8a6112e4f74bc93f6d1a524086385b23b34.zip
added TiB size unit
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 902f4616..7e791035 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
{