diff --git a/src/bsd.c b/src/bsd.c index c525c39..1385289 100644 --- a/src/bsd.c +++ b/src/bsd.c @@ -187,7 +187,7 @@ int bsd_send(LIBUS_SOCKET_DESCRIPTOR fd, const char *buf, int length, int msg_mo #ifdef MSG_MORE // for Linux we do not want signals - return send(fd, buf, length, (msg_more * MSG_MORE) | MSG_NOSIGNAL); + return send(fd, buf, length, ((msg_more != 0) * MSG_MORE) | MSG_NOSIGNAL); #else