Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
einhornimmond committed Aug 14, 2024
1 parent 0a47de3 commit c90b31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory/Block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace memory {
const char* firstInvalidByte = nullptr;
auto convertResult = sodium_base642bin(bin, binSize, base64String, size, nullptr, &resultBinSize, &firstInvalidByte, variant);
if (0 != convertResult) {
throw GradidoInvalidBase64Exception("invalid base64", base64String, convertResult);
throw GradidoInvalidBase64Exception("invalid base64", base64String, (int)*firstInvalidByte);
}
if (resultBinSize < binSize) {
memory::Block bin_real(resultBinSize, bin);
Expand Down

0 comments on commit c90b31f

Please sign in to comment.