summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-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)