PERFORCE change 155331 for review
Ed Schouten
ed at FreeBSD.org
Sat Dec 27 08:15:56 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=155331
Change 155331 by ed at ed_dull on 2008/12/27 16:15:35
- Add a stress testing utility, that throws random data into the emulator.
- Fix two crash bugs, caused by the stress testing utility.
Affected files ...
.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_stress.c#1 add
.. //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#20 edit
Differences ...
==== //depot/projects/mpsafetty/sys/dev/syscons/teken/teken_subr.h#20 (text+ko) ====
@@ -375,9 +375,13 @@
if (t->t_cursor.tp_row + nrows >= t->t_scrollreg.ts_end) {
tr.tr_begin.tp_row = t->t_cursor.tp_row;
} else {
+ teken_pos_t tp;
+
/* Copy rows up. */
tr.tr_begin.tp_row = t->t_cursor.tp_row + nrows;
- teken_funcs_copy(t, &tr, &t->t_cursor);
+ tp.tp_row = t->t_cursor.tp_row;
+ tp.tp_col = 0;
+ teken_funcs_copy(t, &tr, &tp);
tr.tr_begin.tp_row = t->t_scrollreg.ts_end - nrows;
}
@@ -429,7 +433,7 @@
tr.tr_end.tp_row = t->t_cursor.tp_row + 1;
if (t->t_cursor.tp_col + ncols >= t->t_winsize.tp_col)
- tr.tr_end.tp_col = t->t_winsize.tp_col - 1;
+ tr.tr_end.tp_col = t->t_winsize.tp_col;
else
tr.tr_end.tp_col = t->t_cursor.tp_col + ncols;
More information about the p4-projects
mailing list