mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-04 06:36:46 +02:00
use correct types
This commit is contained in:
@ -370,11 +370,7 @@ 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 = tox_get_name(m, friendnum, nick);
|
||||
|
||||
if (n_len == -1)
|
||||
return;
|
||||
|
||||
int n_len = tox_get_name(m, friendnum, nick);
|
||||
n_len = MIN(n_len, TOXIC_MAX_NAME_LENGTH);
|
||||
|
||||
if (!nick[0]) {
|
||||
|
Reference in New Issue
Block a user