mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +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)
|
||||
{
|
||||
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…
Add table
Reference in a new issue