1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 19:43:26 +01:00

buffer needs to be empty

This commit is contained in:
Jfreegman 2014-04-01 16:32:53 -04:00
parent 411ae8d0f5
commit c46676daa5
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -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);