Commit d855584b authored by Johny Mattsson's avatar Johny Mattsson
Browse files

Fixed off-by-one error from refactoring.

parent 06724fbb
......@@ -82,7 +82,7 @@ static const char hex[] = "0123456789abcdef";
// note: supports in-place encoding
void crypto_encode_asciihex (const char *bin, size_t binlen, char *outbuf)
{
size_t aidx = binlen * 2;
size_t aidx = binlen * 2 -1;
int i;
for (i = binlen -1; i >= 0; --i)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment