Fix silly one-liner bug... retag time.
This commit is contained in:
@@ -66,10 +66,10 @@ public:
|
|||||||
|
|
||||||
Dictionary(const char *s,unsigned int len)
|
Dictionary(const char *s,unsigned int len)
|
||||||
{
|
{
|
||||||
if (len > C)
|
if (len > (C-1))
|
||||||
len = C;
|
len = C-1;
|
||||||
memcpy(_d,s,len);
|
memcpy(_d,s,len);
|
||||||
_d[len-1] = (char)0;
|
_d[len] = (char)0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary(const Dictionary &d)
|
Dictionary(const Dictionary &d)
|
||||||
|
|||||||
Reference in New Issue
Block a user