diff options
author | Sverker Eriksson <[email protected]> | 2017-07-05 16:08:59 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-07-06 11:53:55 +0200 |
commit | df3442b0eb1ec4c6f8f4547cc20e5ad0824e7cd5 (patch) | |
tree | beb336d98babf2d9d63a0ee5f159e7c4658911c4 /erts/emulator/beam/global.h | |
parent | 040bdce67f88d833bfb59adae130a4ffb4c180f0 (diff) | |
download | otp-df3442b0eb1ec4c6f8f4547cc20e5ad0824e7cd5.tar.gz otp-df3442b0eb1ec4c6f8f4547cc20e5ad0824e7cd5.tar.bz2 otp-df3442b0eb1ec4c6f8f4547cc20e5ad0824e7cd5.zip |
erts: Refactor erts_unicode_list_to_buf
to get bytes written when truncated.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r-- | erts/emulator/beam/global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h index fc95535ec3..fcb88712e9 100644 --- a/erts/emulator/beam/global.h +++ b/erts/emulator/beam/global.h @@ -1287,7 +1287,7 @@ int erts_utf8_to_latin1(byte* dest, const byte* source, int slen); void bin_write(fmtfn_t, void*, byte*, size_t); Sint intlist_to_buf(Eterm, char*, Sint); /* most callers pass plain char*'s */ -Sint erts_unicode_list_to_buf(Eterm list, byte *buf, Sint len); +int erts_unicode_list_to_buf(Eterm list, byte *buf, Sint len, Sint* written); struct Sint_buf { #if defined(ARCH_64) |