1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-06 10:34:09 +00:00

Fixed 32 bit compiler warnings, and fixed bug where serviceName could be undefined

This commit is contained in:
Bryan Roe
2020-11-10 02:08:06 -08:00
parent 4bc6ab6e3b
commit ef307c7843
6 changed files with 11 additions and 10 deletions

View File

@@ -1157,7 +1157,7 @@ void kvm_relay_StdOutHandler(ILibProcessPipe_Process sender, char *buffer, size_
{
if (bufferLen > 8)
{
if (bufferLen >= (8 + (int)ntohl(((unsigned int*)(buffer))[1])))
if (bufferLen >= (size_t)(8 + (int)ntohl(((unsigned int*)(buffer))[1])))
{
*bytesConsumed = 8 + (int)ntohl(((unsigned int*)(buffer))[1]);
writeHandler(buffer, (int)*bytesConsumed, reserved);