summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index dfb88057..8dc7751a 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -55,7 +55,7 @@
struct cmd {
struct list_head next;
- uint8_t cbuf[IPCP_MSG_BUF_SIZE];
+ uint8_t cbuf[SOCK_BUF_SIZE];
size_t len;
int fd;
};
@@ -146,7 +146,7 @@ static void * acceptloop(void * o)
break;
}
- cmd->len = read(csockfd, cmd->cbuf, IPCP_MSG_BUF_SIZE);
+ cmd->len = read(csockfd, cmd->cbuf, SOCK_BUF_SIZE);
if (cmd->len <= 0) {
log_err("Failed to read from socket.");
close(csockfd);