more warns

This commit is contained in:
DarthArgus
2015-10-13 16:11:19 -05:00
parent efc4117900
commit 25b0b97bf0
3 changed files with 67 additions and 67 deletions
@@ -674,7 +674,7 @@ void RemoteDebug::send(MESSAGE_TYPE type, const char* theName)
if (explicitMessageLength != 0)
messageLength = explicitMessageLength;
else if (ms_varArgs_buffer)
else if (strlen(ms_varArgs_buffer) > 0)
{
//only grab buffer sizes if needed
messageLength = strlen(ms_varArgs_buffer)+1;
@@ -688,7 +688,7 @@ void RemoteDebug::send(MESSAGE_TYPE type, const char* theName)
uint32 packetLength = static_cast<uint32>(messageTypeLength + channelNumberLength + messageLengthLength + static_cast<int>(messageLength));
if (ms_varArgs_buffer)
if (strlen(ms_varArgs_buffer) > 0)
{
//copy data into the packet
memcpy(ms_buffer, &messageType, static_cast<uint32>(messageTypeLength));