]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file change not directly applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 19 Nov 2021 19:40:50 +0000 (11:40 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 19 Nov 2021 19:40:50 +0000 (11:40 -0800)
open-vm-tools/lib/rpcVmx/rpcvmx.c

index c59ea30e3e5a7d3b8dc0638923dffe50a7d7977b..55c9173977b6fe05ce3608e584b42405b9b17b18 100644 (file)
@@ -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);
 }