diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-16 19:25:31 +0000 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-16 19:25:31 +0000 |
| commit | de5cc82b5b29a47b0cc7de08800fe38860228850 (patch) | |
| tree | 0845a9cca81b11f20bcc988fea2b060c85928143 /node/Utils.hpp | |
| parent | 77f8d75529e401ac7b45927f1d75b4df87bc0c55 (diff) | |
| download | infinitytier-de5cc82b5b29a47b0cc7de08800fe38860228850.tar.gz infinitytier-de5cc82b5b29a47b0cc7de08800fe38860228850.zip | |
Build fix to eliminate strict aliasing warnings, and a bug fix.
Diffstat (limited to 'node/Utils.hpp')
| -rw-r--r-- | node/Utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp index b214c78c..991ae31b 100644 --- a/node/Utils.hpp +++ b/node/Utils.hpp @@ -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; } } |
