From 5d9cb37f1f07437ce1f4f6a38a65dac5c6200928 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 15 Dec 2011 13:13:53 +0000 Subject: [PATCH] another fallback RE fix --- daemon/control_udp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/control_udp.c b/daemon/control_udp.c index 2ce6f62e4..341841010 100644 --- a/daemon/control_udp.c +++ b/daemon/control_udp.c @@ -66,10 +66,10 @@ static void control_udp_incoming(int fd, void *p) { iov[0].iov_base = (void *) out[1]; iov[0].iov_len = strlen(out[1]); if (out[2] && (chrtoupper(out[2][0]) == 'U' || chrtoupper(out[2][0]) == 'L')) { - iov[1].iov_base = (void *) out[3]; - iov[1].iov_len = strlen(out[3]); - iov[2].iov_base = (void *) out[2]; - iov[2].iov_len = strlen(out[2]); + iov[1].iov_base = (void *) out[4]; + iov[1].iov_len = strlen(out[4]); + iov[2].iov_base = (void *) out[3]; + iov[2].iov_len = strlen(out[3]); iov[3].iov_base = "\n"; iov[3].iov_len = 1; mh.msg_iovlen = 4;