mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-03 06:06:45 +02:00
small fix
This commit is contained in:
@ -370,9 +370,9 @@ static void prompt_onConnectionChange(ToxWindow *self, Tox *m, int32_t friendnum
|
||||
ChatContext *ctx = self->chatwin;
|
||||
|
||||
uint8_t nick[TOX_MAX_NAME_LENGTH];
|
||||
uint16_t n_len;
|
||||
uint16_t n_len = tox_get_name(m, friendnum, nick);
|
||||
|
||||
if (n_len = tox_get_name(m, friendnum, nick) == -1)
|
||||
if (n_len == -1)
|
||||
return;
|
||||
|
||||
n_len = MIN(n_len, TOXIC_MAX_NAME_LENGTH);
|
||||
|
Reference in New Issue
Block a user