aboutsummaryrefslogtreecommitdiffstats
path: root/src/codec/hex
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec/hex')
-rw-r--r--src/codec/hex/hex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/hex/hex.cpp b/src/codec/hex/hex.cpp
index 70e819906..6cef71fec 100644
--- a/src/codec/hex/hex.cpp
+++ b/src/codec/hex/hex.cpp
@@ -167,7 +167,7 @@ SecureVector<byte> hex_decode(const char input[],
input_length,
ignore_ws);
- bin.truncate(written);
+ bin.resize(written);
return bin;
}