diff options
Diffstat (limited to 'src/sym_algo')
-rw-r--r-- | src/sym_algo/symkey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sym_algo/symkey.cpp b/src/sym_algo/symkey.cpp index 63b3e75b7..4452fd8fb 100644 --- a/src/sym_algo/symkey.cpp +++ b/src/sym_algo/symkey.cpp @@ -28,7 +28,7 @@ OctetString::OctetString(RandomNumberGenerator& rng, */ void OctetString::change(const std::string& hex_string) { - SecureVector<byte> decoded(hex_string.length() / 2); + SecureVector<byte> decoded(1 + hex_string.length() / 2); u32bit written = hex_decode(&decoded[0], hex_string); |