Browse Source

Merge pull request #6818 from Morph1984/hex-util-bug

hex_util: Fix incorrect array size in AsArray
Mai M 5 years ago
parent
commit
9a7d2e3659
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/hex_util.h

+ 1 - 1
src/common/hex_util.h

@@ -61,7 +61,7 @@ template <typename ContiguousContainer>
     return out;
 }
 
-[[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[17]) {
+[[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[33]) {
     return HexStringToArray<16>(data);
 }