summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-15 20:14:22 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-15 20:14:22 -0400
commit7fd5c13e064c6d1d27e9e9f2e739f369fb8f9a04 (patch)
tree01d7d8729e841f4f8a793a97b0905c0618aa4a14 /datatest.cpp
parenta61c97f7ee720ed13684e55e604b5f29a45ccfb3 (diff)
downloadcryptopp-git-7fd5c13e064c6d1d27e9e9f2e739f369fb8f9a04.tar.gz
Fix PutDecodedDatumInto on OS X
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/datatest.cpp b/datatest.cpp
index 315300dd..dcf2140b 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -119,7 +119,7 @@ void PutDecodedDatumInto(const TestData &data, const char *name, BufferedTransfo
// Use like this (from Threefish test vectors, which supplies byte-reversed values):
// Key: ce BC2560EFC6BBA2B1 E3361F162238EB40 FB8631EE0ABBD175 7B9479D4C5479ED1
// The 'ce' means BC2560EFC6BBA2B1 will be processed into B1A2BBC6EF6025BC.
- if (s1.length() >= 2 && s1.substr(0,2) == "ce")
+ if (s1.length() >= 3 && s1.substr(0,2) == "ce ")
{
word64 value;
std::istringstream iss(s1.substr(3));