diff options
Diffstat (limited to 'libhw/host_net.c')
-rw-r--r-- | libhw/host_net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c index 27df2e2..75486aa 100644 --- a/libhw/host_net.c +++ b/libhw/host_net.c @@ -457,7 +457,8 @@ static void *hostnet_pthread_recvfrom(void *_args) { if (*(args->ret_size) < 0) goto end; - *(args->ret_size) = recvfrom(args->connfd, args->buf, args->count, 0, &addr.gen, &addr_size); + *(args->ret_size) = recvfrom(args->connfd, args->buf, args->count, + MSG_TRUNC, &addr.gen, &addr_size); if (*(args->ret_size) < 0) goto end; |