Using MAX_PACKET_SIZE where appropriate in linuxradiodrv
This commit is contained in:
parent
beef4f5d5d
commit
5fed4a3f1c
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ static void
|
||||||
handle_fd(fd_set *rset, fd_set *wset)
|
handle_fd(fd_set *rset, fd_set *wset)
|
||||||
{
|
{
|
||||||
if (FD_ISSET(sockfd, rset)) {
|
if (FD_ISSET(sockfd, rset)) {
|
||||||
int bytes = read(sockfd, sockbuf, 256);
|
int bytes = read(sockfd, sockbuf, MAX_PACKET_SIZE);
|
||||||
buflen = bytes;
|
buflen = bytes;
|
||||||
memcpy(packetbuf_dataptr(), sockbuf, bytes);
|
memcpy(packetbuf_dataptr(), sockbuf, bytes);
|
||||||
packetbuf_set_datalen(bytes);
|
packetbuf_set_datalen(bytes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue