mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Fix silly one-liner bug... retag time.
This commit is contained in:
parent
c03ca3c278
commit
901e2fd692
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue