mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 22:58:22 +00:00
Build fix to eliminate strict aliasing warnings, and a bug fix.
This commit is contained in:
@ -572,7 +572,7 @@ public:
|
||||
char *end = dest + len;
|
||||
while ((*dest++ = *src++)) {
|
||||
if (dest == end) {
|
||||
dest[len - 1] = (char)0;
|
||||
--dest = (char)0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user