diff options
author | Sverker Eriksson <[email protected]> | 2018-07-03 20:35:54 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-07-18 15:00:26 +0200 |
commit | 2be45ea245e52e852a35fec9c5b53a1c55d546ff (patch) | |
tree | fe568ecfe3782b342f4ca8434b31208783f87b2f | |
parent | 00a2f00485e88cda594361e271f90e5432edc275 (diff) | |
download | otp-2be45ea245e52e852a35fec9c5b53a1c55d546ff.tar.gz otp-2be45ea245e52e852a35fec9c5b53a1c55d546ff.tar.bz2 otp-2be45ea245e52e852a35fec9c5b53a1c55d546ff.zip |
erl_interface: Fix bug in ei_*receive_msg* functions
-rw-r--r-- | lib/erl_interface/src/connect/ei_connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c index 34f4620866..fe5f38419e 100644 --- a/lib/erl_interface/src/connect/ei_connect.c +++ b/lib/erl_interface/src/connect/ei_connect.c @@ -999,7 +999,7 @@ int ei_do_receive_msg(int fd, int staticbuffer_p, erl_errno = EMSGSIZE; return ERL_ERROR; } - x->index = x->buffsz; + x->index = msglen; switch (msg->msgtype) { /* FIXME does not handle trace tokens and monitors */ case ERL_SEND: case ERL_REG_SEND: |