Commit 2a5cccb3 authored by Jaromil's avatar Jaromil
Browse files

remove unnecessary memory bound in big to octet conversion

parent 3867d5c7
......@@ -127,7 +127,7 @@ static int newbig(lua_State *L) {
static int big_to_octet(lua_State *L) {
big *c = big_arg(L,1); SAFE(c);
BIG_norm(c->val);
octet *o = o_new(L, c->len+2); SAFE(o);
octet *o = o_new(L, c->len); SAFE(o);
BIG_toBytes(o->val, c->val);
o->len = c->len;
return 1;
......
Supports Markdown
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