mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-24 02:33:25 +01:00
buffer needs to be empty
This commit is contained in:
parent
411ae8d0f5
commit
c46676daa5
@ -369,7 +369,7 @@ static void prompt_onConnectionChange(ToxWindow *self, Tox *m, int32_t friendnum
|
||||
|
||||
ChatContext *ctx = self->chatwin;
|
||||
|
||||
uint8_t nick[TOX_MAX_NAME_LENGTH];
|
||||
uint8_t nick[TOX_MAX_NAME_LENGTH] = {0};
|
||||
int n_len = tox_get_name(m, friendnum, nick);
|
||||
n_len = MIN(n_len, TOXIC_MAX_NAME_LENGTH-1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user