Fix sendTEXT bug

sendText using the number 40 instead of message length in sendUDP call.
Messages would be cut off if longer than this
This commit is contained in:
Chris Teubert
2015-04-24 11:00:53 -07:00
parent 9109056437
commit c2ab55e2d0

View File

@@ -651,7 +651,7 @@ int sendTEXT(XPCSocket sock, char* msg, int x, int y)
strncpy(buffer + 14, msg, msgLen);
// Send Command
if (sendUDP(sock, buffer, 40) < 0)
if (sendUDP(sock, buffer, len) < 0)
{
printError("sendTEXT", "Failed to send command");
return -3;