Skip to content
Snippets Groups Projects
Commit 0e3c7134 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Initialize c_cc in SyncTERM as well.

parent d1642fb8
No related branches found
No related tags found
No related merge requests found
Pipeline #5768 passed
......@@ -402,14 +402,14 @@ pty_connect(struct bbslist *bbs)
char *termcap;
int cols, rows, pixelc, pixelr;
int cp;
int i;
ts.c_iflag = TTYDEF_IFLAG;
ts.c_oflag = TTYDEF_OFLAG;
ts.c_lflag = TTYDEF_LFLAG;
ts.c_cflag = TTYDEF_CFLAG;
#ifdef VTIME
ts.c_cc[VTIME] = CTIME;
#endif
for (i = 0; i < (sizeof(ts.c_cc) / sizeof(ts.c_cc[0])); i++)
ts.c_cc[i] = _POSIX_VDISABLE;
#ifdef VMIN
ts.c_cc[VMIN] = CMIN;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment