summaryrefslogtreecommitdiff
path: root/node/Dictionary.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-29 18:12:35 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-29 18:12:35 -0700
commit901e2fd692393c50cc17278847dd62adb0c09703 (patch)
tree789e5b3c7f040331044e284233f9d6924b8583ca /node/Dictionary.hpp
parentc03ca3c27826a1d373e1fd34f9116423b3166548 (diff)
downloadinfinitytier-901e2fd692393c50cc17278847dd62adb0c09703.tar.gz
infinitytier-901e2fd692393c50cc17278847dd62adb0c09703.zip
Fix silly one-liner bug... retag time.
Diffstat (limited to 'node/Dictionary.hpp')
-rw-r--r--node/Dictionary.hpp6
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)