diff options
author | Sverker Eriksson <[email protected]> | 2013-01-30 19:15:30 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-01-30 19:15:30 +0100 |
commit | f822540687d16eecfcd2d74b55091593c674d478 (patch) | |
tree | 5ee5285e3b367dcd398468295044933d31dbd261 /lib/erl_interface/src/decode/decode_skip.c | |
parent | 68b804f34d4ec420d86953e3f519179a40fbee8f (diff) | |
download | otp-f822540687d16eecfcd2d74b55091593c674d478.tar.gz otp-f822540687d16eecfcd2d74b55091593c674d478.tar.bz2 otp-f822540687d16eecfcd2d74b55091593c674d478.zip |
erl_interface: Fix ei_skip_term
Diffstat (limited to 'lib/erl_interface/src/decode/decode_skip.c')
-rw-r--r-- | lib/erl_interface/src/decode/decode_skip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/erl_interface/src/decode/decode_skip.c b/lib/erl_interface/src/decode/decode_skip.c index f6c5d861ab..e2bfe1f802 100644 --- a/lib/erl_interface/src/decode/decode_skip.c +++ b/lib/erl_interface/src/decode/decode_skip.c @@ -30,7 +30,8 @@ int ei_skip_term(const char* buf, int* index) switch (ty) { case ERL_ATOM_EXT: /* FIXME: what if some weird locale is in use? */ - if (ei_decode_atom(buf, index, NULL) < 0) return -1; + if (ei_decode_atom_as(buf, index, NULL, MAXATOMLEN_UTF8, (ERLANG_LATIN1|ERLANG_UTF8), + NULL, NULL) < 0) return -1; break; case ERL_PID_EXT: if (ei_decode_pid(buf, index, NULL) < 0) return -1; |