aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-07-03 20:35:54 +0200
committerSverker Eriksson <[email protected]>2018-07-18 15:00:26 +0200
commit2be45ea245e52e852a35fec9c5b53a1c55d546ff (patch)
treefe568ecfe3782b342f4ca8434b31208783f87b2f /lib
parent00a2f00485e88cda594361e271f90e5432edc275 (diff)
downloadotp-2be45ea245e52e852a35fec9c5b53a1c55d546ff.tar.gz
otp-2be45ea245e52e852a35fec9c5b53a1c55d546ff.tar.bz2
otp-2be45ea245e52e852a35fec9c5b53a1c55d546ff.zip
erl_interface: Fix bug in ei_*receive_msg* functions
Diffstat (limited to 'lib')
-rw-r--r--lib/erl_interface/src/connect/ei_connect.c2
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: