Fixed bug in C client WYPT command.

This commit is contained in:
Jason Watkins
2015-05-14 14:41:53 -07:00
parent 748d37c4d9
commit 05e0deeb0a

View File

@@ -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;