1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-16 04:03:02 +01:00

a few fixes

This commit is contained in:
Jfreegman 2014-08-19 23:40:49 -04:00
parent fd3f4eb724
commit bd20513493
2 changed files with 4 additions and 6 deletions

View File

@ -975,7 +975,7 @@ static void friendlist_onDraw(ToxWindow *self, Tox *m)
wmove(self->window, y2 - 1, 1); wmove(self->window, y2 - 1, 1);
wattron(self->window, A_BOLD); wattron(self->window, A_BOLD);
wprintw(self->window, "ID: "); wprintw(self->window, "Key: ");
wattroff(self->window, A_BOLD); wattroff(self->window, A_BOLD);
int i; int i;

View File

@ -372,7 +372,7 @@ void cmd_requests(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
return; return;
} }
int i; int i, j;
int count = 0; int count = 0;
for (i = 0; i < FriendRequests.max_idx; ++i) { for (i = 0; i < FriendRequests.max_idx; ++i) {
@ -380,7 +380,6 @@ void cmd_requests(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
continue; continue;
char id[TOX_CLIENT_ID_SIZE * 2 + 1] = {0}; char id[TOX_CLIENT_ID_SIZE * 2 + 1] = {0};
size_t j;
for (j = 0; j < TOX_CLIENT_ID_SIZE; ++j) { for (j = 0; j < TOX_CLIENT_ID_SIZE; ++j) {
char d[3]; char d[3];
@ -388,12 +387,11 @@ void cmd_requests(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
strcat(id, d); strcat(id, d);
} }
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "id: %d, Key: %s", i, id); line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%d : %s", i, id);
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Message: %s", FriendRequests.request[i].msg); line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%s", FriendRequests.request[i].msg);
if (++count < FriendRequests.num_requests) if (++count < FriendRequests.num_requests)
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, ""); line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "");
} }
} }