Skip to content
  • poljar's avatar
    javascript: Switch from deprecated Pointer_stringify() to UTF8toString(). · 071029c2
    poljar authored and Hubert Chathi's avatar Hubert Chathi committed
    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.
    071029c2