Skip to content
Snippets Groups Projects
Commit 3ed0ec22 authored by Hubert Chathi's avatar Hubert Chathi
Browse files

add termination

parent b91c7772
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ PkDecryption.prototype['generate_key'] = restore_stack(function () {
var pubkey_length = pk_encryption_method(
Module['_olm_pk_key_length']
)();
var pubkey_buffer = stack(pubkey_length);
var pubkey_buffer = stack(pubkey_length + NULL_BYTE_PADDING_LENGTH);
pk_decryption_method(Module['_olm_pk_generate_key'])(
this.ptr,
pubkey_buffer, pubkey_length,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment