1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 08:26:45 +02:00

fix buffer overflows and format issues

This commit is contained in:
Jfreegman
2013-08-31 02:22:07 -04:00
parent b99ce9ce46
commit bfeea47774
2 changed files with 10 additions and 9 deletions

View File

@ -120,7 +120,7 @@ int add_window(Tox *m, ToxWindow w)
void del_window(ToxWindow *w)
{
active_window = windows; // Go to prompt screen
delwin(w->window);
memset(w, 0, sizeof(ToxWindow));
@ -187,7 +187,7 @@ static void draw_bar()
move(LINES - 1, 0);
attron(COLOR_PAIR(4) | A_BOLD);
printw(" TOXIC " TOXICVER "|");
printw(" TOXIC " TOXICVER " |");
attroff(COLOR_PAIR(4) | A_BOLD);
int i;