diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-29 18:12:35 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-29 18:12:35 -0700 |
commit | 901e2fd692393c50cc17278847dd62adb0c09703 (patch) | |
tree | 789e5b3c7f040331044e284233f9d6924b8583ca /node/Dictionary.hpp | |
parent | c03ca3c27826a1d373e1fd34f9116423b3166548 (diff) | |
download | infinitytier-901e2fd692393c50cc17278847dd62adb0c09703.tar.gz infinitytier-901e2fd692393c50cc17278847dd62adb0c09703.zip |
Fix silly one-liner bug... retag time.
Diffstat (limited to 'node/Dictionary.hpp')
-rw-r--r-- | node/Dictionary.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Dictionary.hpp b/node/Dictionary.hpp index e6501bfe..59fc4bbf 100644 --- a/node/Dictionary.hpp +++ b/node/Dictionary.hpp @@ -66,10 +66,10 @@ public: Dictionary(const char *s,unsigned int len) { - if (len > C) - len = C; + if (len > (C-1)) + len = C-1; memcpy(_d,s,len); - _d[len-1] = (char)0; + _d[len] = (char)0; } Dictionary(const Dictionary &d) |