diff options
Diffstat (limited to 'ospfd/ospf_api.c')
-rw-r--r-- | ospfd/ospf_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_api.c b/ospfd/ospf_api.c index 03b31861..d9960d4a 100644 --- a/ospfd/ospf_api.c +++ b/ospfd/ospf_api.c @@ -350,12 +350,12 @@ msg_read (int fd) { struct msg *msg; struct apimsghdr hdr; - char buf[OSPF_API_MAX_MSG_SIZE]; + u_char buf[OSPF_API_MAX_MSG_SIZE]; int bodylen; int rlen; /* Read message header */ - rlen = readn (fd, (char *) &hdr, sizeof (struct apimsghdr)); + rlen = readn (fd, (u_char *) &hdr, sizeof (struct apimsghdr)); if (rlen < 0) { |