From: John Wolfe Date: Fri, 19 Nov 2021 19:40:50 +0000 (-0800) Subject: Common source file change not directly applicable to open-vm-tools. X-Git-Tag: stable-12.0.0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36514e38f5e31a74ef2e38cb13cebd054a52179d;p=thirdparty%2Fopen-vm-tools.git Common source file change not directly applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/rpcVmx/rpcvmx.c b/open-vm-tools/lib/rpcVmx/rpcvmx.c index c59ea30e3..55c917397 100644 --- a/open-vm-tools/lib/rpcVmx/rpcvmx.c +++ b/open-vm-tools/lib/rpcVmx/rpcvmx.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2004-2018,2019 VMware, Inc. All rights reserved. + * Copyright (C) 2004-2018,2019,2021 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -178,7 +178,8 @@ RpcVMX_LogV(const char *fmt, va_list args) * returns two character strings "1 " on success and "0 " on * failure, so we don't need a sizeable buffer. */ - RpcOut_SendOneRawPreallocated(RpcVMX.logBuf, RpcVMX.logOffset + payloadLen, + RpcOut_SendOneRawPreallocated(RpcVMX.logBuf, + (size_t)RpcVMX.logOffset + payloadLen, receiveBuffer, sizeof receiveBuffer); }