Using MAX_PACKET_SIZE where appropriate in linuxradiodrv

This commit is contained in:
Vladimir Pouzanov 2014-01-25 17:13:49 +00:00 committed by Vladimir Pouzanov
parent beef4f5d5d
commit 5fed4a3f1c

View File

@ -144,7 +144,7 @@ static void
handle_fd(fd_set *rset, fd_set *wset)
{
if (FD_ISSET(sockfd, rset)) {
int bytes = read(sockfd, sockbuf, 256);
int bytes = read(sockfd, sockbuf, MAX_PACKET_SIZE);
buflen = bytes;
memcpy(packetbuf_dataptr(), sockbuf, bytes);
packetbuf_set_datalen(bytes);