Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/netloop/lo_listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct net_listener_s
struct sockaddr_in addr;
fd_set master;
fd_set working;
char buffer[IOBUFFER_SIZE];
char buffer[IOBUFFER_SIZE + 1];
int listensd;
int mxsd;
};
Expand Down
2 changes: 1 addition & 1 deletion examples/netloop/lo_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static int lo_client(void)
{
struct sockaddr_in myaddr;
char outbuf[IOBUFFER_SIZE];
char inbuf[IOBUFFER_SIZE];
char inbuf[IOBUFFER_SIZE + 1];
int sockfd;
int len;
int nbytessent;
Expand Down
2 changes: 1 addition & 1 deletion examples/poll/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int main(int argc, char **argv, char **envp)
{
struct sockaddr_in myaddr;
char outbuf[IOBUFFER_SIZE];
char inbuf[IOBUFFER_SIZE];
char inbuf[IOBUFFER_SIZE + 1];
int sockfd;
int len;
int nbytessent;
Expand Down
2 changes: 1 addition & 1 deletion examples/poll/net_listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct net_listener_s
struct sockaddr_in addr;
fd_set master;
fd_set working;
char buffer[IOBUFFER_SIZE];
char buffer[IOBUFFER_SIZE + 1];
int listensd;
int mxsd;
};
Expand Down
2 changes: 1 addition & 1 deletion examples/poll/net_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void net_configure(void)
static void net_receive(int sd)
{
struct timeval timeout;
char buffer[IOBUFFER_SIZE];
char buffer[IOBUFFER_SIZE + 1];
char *ptr;
fd_set readset;
int nbytes;
Expand Down
Loading