This patch is a slightly modified version of the patch submitted by
Josh Paetzel in pull request:
https://github.com/vmware/open-vm-tools/pull/221
Andrew Stormont Fix finding C++ compiler for cross-compiling
- https://github.com/vmware/open-vm-tools/pull/206
+Josh Paetzel Fix compilation error in clang 6.0
+ - https://github.com/vmware/open-vm-tools/pull/221
/*********************************************************
- * Copyright (C) 2007-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-2018 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
goto abort;
}
}
- for (var = 0; var <= 0xFFFFFFFF; var++) {
+ for (var = 0; var < MAX_INT32; var++) {
free(tempScriptFilePath);
tempScriptFilePath = Str_SafeAsprintf(NULL,
"%s"DIRSEPS"%s%d%s",