mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug.
This commit is contained in:
parent
5b18a90eaf
commit
9ef4bab51d
|
@ -383,7 +383,7 @@ uint16_t getself_name(Messenger *m, uint8_t *name, uint16_t nlen)
|
|||
}
|
||||
|
||||
len = MIN(nlen, m->name_length);
|
||||
memcpy(name, m->name, m->name_length);
|
||||
memcpy(name, m->name, len);
|
||||
|
||||
return len;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user