Build fix to eliminate strict aliasing warnings, and a bug fix.
This commit is contained in:
parent
77f8d75529
commit
de5cc82b5b
2 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue