1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 19:37:46 +02:00

fixed bug that was causing random crashes

This commit is contained in:
Jfreegman 2013-10-20 02:11:23 -04:00
parent 957b335559
commit 77de8dd116

View File

@ -386,7 +386,6 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key)
/* RETURN key: Execute command or print line */
else if (key == '\n') {
uint8_t *line = wcs_to_char(ctx->line);
line[ctx->pos+1] = L'\0';
wclear(ctx->linewin);
wmove(self->window, y2 - CURS_Y_OFFSET, 0);
wclrtobot(self->window);