1
0
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:
Jfreegman
2014-04-01 03:53:12 -04:00
parent f3a8ba6ab3
commit e419299487
4 changed files with 12 additions and 19 deletions

View File

@ -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]) {