mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 10:46:33 +00:00
Fix silly one-liner bug... retag time.
This commit is contained in:
parent
c03ca3c278
commit
901e2fd692
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user