diff options
author | Damir Jelić <poljar@termina.org.uk> | 2019-04-01 17:40:43 +0200 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-04-08 15:18:28 -0400 |
commit | 071029c20174307de28ca20232196f83fcc37763 (patch) | |
tree | 272e901d2bfcf0efe6be018caed3a3a06d54a815 /xcode/OLMKit/OLMMessage.h | |
parent | 709687a7b56d6768831766459940b6f0bb078d85 (diff) |
javascript: Switch from deprecated Pointer_stringify() to UTF8toString().
The Pointer_stringify() function is deprecated and has a couple of
issues because it tries to guess the encoding of the buffer. In some
cases it can ignore the length parameter which could end up in
inconsistencies.
Switch to UTF8toString() that takes a length parameter and respects,
that way we don't need to allocate an additional byte for a NULL byte.
Diffstat (limited to 'xcode/OLMKit/OLMMessage.h')
0 files changed, 0 insertions, 0 deletions