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:
@@ -651,7 +651,7 @@ int sendTEXT(XPCSocket sock, char* msg, int x, int y)
|
|||||||
strncpy(buffer + 14, msg, msgLen);
|
strncpy(buffer + 14, msg, msgLen);
|
||||||
|
|
||||||
// Send Command
|
// Send Command
|
||||||
if (sendUDP(sock, buffer, 40) < 0)
|
if (sendUDP(sock, buffer, len) < 0)
|
||||||
{
|
{
|
||||||
printError("sendTEXT", "Failed to send command");
|
printError("sendTEXT", "Failed to send command");
|
||||||
return -3;
|
return -3;
|
||||||
|
|||||||
Reference in New Issue
Block a user