Compare t_brkc against (char)_POSIX_VDISABLE, not against -1.
Discussed with: bde
This commit is contained in:
parent
9251dd77ca
commit
a77c37b649
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129035
@ -137,7 +137,7 @@ ttsetcompat(tp, com, data, term)
|
||||
cc[VSTOP] = tc->t_stopc;
|
||||
cc[VEOF] = tc->t_eofc;
|
||||
cc[VEOL] = tc->t_brkc;
|
||||
if (tc->t_brkc == -1)
|
||||
if (tc->t_brkc == (char)_POSIX_VDISABLE)
|
||||
cc[VEOL2] = _POSIX_VDISABLE;
|
||||
*com = TIOCSETA;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user