Adding terminal guard around tty column/row calculations
@@ -919,10 +919,13 @@ u3_term_get_blew(c3_l tid_l)
c3_l col_l, row_l;
struct winsize siz_u;
- if ( uty_u && (0 == ioctl(uty_u->fid_i, TIOCGWINSZ, &siz_u)) ) {
+ if ( (c3y == u3_Host.ops_u.tem) &&
+ uty_u && (0 == ioctl(uty_u->fid_i, TIOCGWINSZ, &siz_u)) )
+ {
col_l = siz_u.ws_col;
row_l = siz_u.ws_row;
- } else {
+ }
+ else {
col_l = 80;
row_l = 24;
}
