1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 03:16:46 +02:00

fix bug and typo

This commit is contained in:
Jfreegman
2014-07-25 19:55:16 -04:00
parent f630a3e604
commit 02b192d6ee
3 changed files with 5 additions and 7 deletions

View File

@ -367,11 +367,9 @@ void prompt_init_statusbar(ToxWindow *self, Tox *m)
char nick[TOX_MAX_NAME_LENGTH];
char statusmsg[MAX_STR_SIZE];
pthread_mutex_lock(&Winthread.lock);
uint16_t n_len = tox_get_self_name(m, (uint8_t *) nick);
uint16_t s_len = tox_get_self_status_message(m, (uint8_t *) statusmsg, MAX_STR_SIZE);
uint8_t status = tox_get_self_user_status(m);
pthread_mutex_unlock(&Winthread.lock);
nick[n_len] = '\0';
statusmsg[s_len] = '\0';