Synth/WatchPoint: fix gcc compiler warnings and a possible string overflow
strncat() is used passing the destination length without substracting one byte
for the terminating null byte.
This commit fixes the warning:
src/Synth/WatchPoint.cpp: In constructor ‘zyn::WatchPoint::WatchPoint(zyn::WatchManager*, const char*, const char*)’:
src/Synth/WatchPoint.cpp:36:16: warning: ‘char* strncat(char*, const char*, size_t)’ specified bound 128 equals destination size [-Wstringop-truncation]
36 | strncat(identity, id, sizeof(identity));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Synth/WatchPoint.cpp:36:16: warning: ‘char* strncat(char*, const char*, size_t)’ specified bound 128 equals destination size [-Wstringop-overflow=]
Note: this warning is reported by gcc 11.2.1, on Fedora 35.
Signed-off-by: Julien Olivain <ju.o@free.fr>