Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/teken/teken.c 286798 2015-08-15 08:42:33Z ed $
---
> * $FreeBSD: head/sys/teken/teken.c 286827 2015-08-16 13:59:11Z ed $
414c414
< } else if (t->t_nums[t->t_curnum] < USHRT_MAX) {
---
> } else if (t->t_nums[t->t_curnum] < UINT_MAX / 100) {
416,420c416,423
< * Screen positions are stored as unsigned
< * shorts. There is no need to continue parsing
< * input once the value exceeds USHRT_MAX. It
< * would only allow for integer overflows when
< * performing arithmetic on the cursor position.
---
> * There is no need to continue parsing input
> * once the value exceeds the size of the
> * terminal. It would only allow for integer
> * overflows when performing arithmetic on the
> * cursor position.
> *
> * Ignore any further digits if the value is
> * already UINT_MAX / 100.