1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-09-20 00:16:51 +02:00

Merge pull request #20 from JFreegman/master

fix buffer overflows and format issues
This commit is contained in:
JFreegman
2013-09-01 15:15:10 -07:00
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;