summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/normal')
-rw-r--r--src/ipcpd/normal/pol/link_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/normal/pol/link_state.c b/src/ipcpd/normal/pol/link_state.c
index 61469b94..7aa7faf7 100644
--- a/src/ipcpd/normal/pol/link_state.c
+++ b/src/ipcpd/normal/pol/link_state.c
@@ -655,7 +655,7 @@ static void * lsreader(void * o)
{
fqueue_t * fq;
int ret;
- uint8_t buf[sizeof(struct lsa)];
+ uint8_t buf[sizeof(struct lsa) + 1];
int fd;
qosspec_t qs;
struct lsa * msg;
@@ -680,7 +680,7 @@ static void * lsreader(void * o)
}
while ((fd = fqueue_next(fq)) >= 0) {
- len = flow_read(fd, buf, sizeof(*msg));
+ len = flow_read(fd, buf, sizeof(*msg) + 1);
if (len <= 0 || len != sizeof(*msg))
continue;