From 05e0deeb0ab2173f18014aadcc4ba18959b5e8c4 Mon Sep 17 00:00:00 2001 From: Jason Watkins Date: Thu, 14 May 2015 14:41:53 -0700 Subject: [PATCH] Fixed bug in C client WYPT command. --- C/src/xplaneConnect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/src/xplaneConnect.c b/C/src/xplaneConnect.c index 9eb2f7a..e4e633e 100755 --- a/C/src/xplaneConnect.c +++ b/C/src/xplaneConnect.c @@ -685,7 +685,7 @@ int sendWYPT(XPCSocket sock, WYPT_OP op, float points[], int count) memcpy(buffer + 7, points, ptLen); // Send Command - if (sendUDP(sock, buffer, 40) < 0) + if (sendUDP(sock, buffer, 7 + 12 * count) < 0) { printError("sendWYPT", "Failed to send command"); return -2;