patch for libolm: fix some typos in JavaScript library

From 4a82d31e8cb808a04956fc847ed0ec0ff322b956 Mon Sep 17 00:00:00 2001
From: Hubert Chathi <hubert@uhoreg.ca>
Date: Wed, 3 Jan 2018 21:37:43 -0500
Subject: [PATCH] fix some typos in JavaScript library

Signed-off-by: Hubert Chathi <hubert@uhoreg.ca>
This commit is contained in:
Hubert Chathi 2018-01-03 21:41:48 -05:00 committed by Richard van der Hoff
parent 18b067a46f
commit 3f5b9dd6d7

View file

@ -433,9 +433,9 @@ Utility.prototype['sha256'] = restore_stack(function(input) {
var input_array = array_from_string(input);
var input_buffer = stack(input_array);
var output_buffer = stack(output_length + NULL_BYTE_PADDING_LENGTH);
utility_method(Module['_olm_sha2516'])(
utility_method(Module['_olm_sha256'])(
this.ptr,
input_buffer, input_array.length(),
input_buffer, input_array.length,
output_buffer, output_length
);
return Pointer_stringify(output_buffer);