aboutsummaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-01-03 21:41:48 -0500
committerRichard van der Hoff <richard@matrix.org>2018-01-09 15:57:47 +0000
commit3f5b9dd6d72540a66da90b382a2eda088af63da0 (patch)
treebd473fc73e721f53334ced97ba83bb6265ab116c /javascript
parent18b067a46f575299a80349d2a5dce74b7dad88de (diff)
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>
Diffstat (limited to 'javascript')
-rw-r--r--javascript/olm_post.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/olm_post.js b/javascript/olm_post.js
index 65eab02..91830fa 100644
--- a/javascript/olm_post.js
+++ b/javascript/olm_post.js
@@ -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);