]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Fix a gcc-8 compiler warning in lib/misc/vthreadBase.c
authorOliver Kurth <okurth@vmware.com>
Fri, 7 Sep 2018 22:53:27 +0000 (15:53 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 7 Sep 2018 22:53:27 +0000 (15:53 -0700)
commit5a6e8bc0ef8af2eedbbc4dc1973cb7fe18afa939
tree5c066563522dda5442098d963d35599f49de91a9
parent5200ba3a770463e5c6a9e9d7e7a6a949857332ec
Fix a gcc-8 compiler warning in lib/misc/vthreadBase.c

gcc-8 generates a stringop-truncation warning when it's possible
for strncpy to exclude the trailing nul.  The code was fine, we never
touch the last byte in the buffer and it's a static, but explicitly
set a nul at the end of the buffer so gcc sees it.

This is needed for open-vm-tools to build on Suse Tumbleweed.
open-vm-tools/lib/misc/vthreadBase.c