summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 08:15:39 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 08:15:39 +0100
commit07196ab8ea16d4fd39f54f11088a854543cf27ac (patch)
tree0213008dc9b438442e7424f1e6dd378458213301
parent2d261dc5ed1738bf1a34d4bc221a6223ffc0bcd1 (diff)
downloadecon-07196ab8ea16d4fd39f54f11088a854543cf27ac.zip
econ-07196ab8ea16d4fd39f54f11088a854543cf27ac.tar.gz
econ-07196ab8ea16d4fd39f54f11088a854543cf27ac.tar.bz2
econserv: ARRAY_SIZE cant be used for the iov any longer when sending
Since it has an extra element for long data now.
-rw-r--r--econserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/econserv.c b/econserv.c
index be07bef..58ff20a 100644
--- a/econserv.c
+++ b/econserv.c
@@ -129,7 +129,7 @@ handle_input(struct ecs *ecs, char *in, int fd,
msg.msg_name = src_addr;
msg.msg_namelen = addrlen;
msg.msg_iov = ecs->epkt.iov;
- msg.msg_iovlen = ARRAY_SIZE(ecs->epkt.iov);
+ msg.msg_iovlen = 3;
fprintf(stderr, "handle_input: %d, udp: %s\n",
hdr->commandID, src_addr ? "yes" : "no");