|
@@ -3947,7 +3947,7 @@ static void mcast()
|
|
|
|
|
|
|
|
count++;
|
|
count++;
|
|
|
came_from_siz = sizeof(came_from);
|
|
came_from_siz = sizeof(came_from);
|
|
|
- if (SOCKETFAIL(rep = recvfrom(mcast_sock, buf, sizeof(buf),
|
|
|
|
|
|
|
+ if (SOCKETFAIL(rep = recvfrom(mcast_sock, buf, sizeof(buf) - 1,
|
|
|
0, (struct sockaddr *)(&came_from), &came_from_siz))) {
|
|
0, (struct sockaddr *)(&came_from), &came_from_siz))) {
|
|
|
applog(LOG_DEBUG, "API mcast failed count=%d (%s) (%d)",
|
|
applog(LOG_DEBUG, "API mcast failed count=%d (%s) (%d)",
|
|
|
count, SOCKERRMSG, (int)mcast_sock);
|
|
count, SOCKERRMSG, (int)mcast_sock);
|