Commit e256c369 authored by Vitezslav Kriz's avatar Vitezslav Kriz

afl: fix read length

parent e4a6d61b
...@@ -55,7 +55,7 @@ static int udp_stdin_recv(int fd, void *d) ...@@ -55,7 +55,7 @@ static int udp_stdin_recv(int fd, void *d)
{ {
struct udp_stdin *rq = (struct udp_stdin *) d; struct udp_stdin *rq = (struct udp_stdin *) d;
rq->iov[RX].iov_len = fread(rq->iov[RX].iov_base, rq->iov[RX].iov_len = fread(rq->iov[RX].iov_base,
1, rq->iov[RX].iov_len, stdin); 1, KNOT_WIRE_MAX_PKTSIZE, stdin);
return rq->iov[RX].iov_len; return rq->iov[RX].iov_len;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment