2003-06-22 17:44:35

by

[permalink] [raw]
Subject: [PATCH][Trivial] Columns in n_tty.c

Here's a column counting bug that was lurking in a corner of n_tty.c.

The patch is against 2.5.72, but it applies to 2.4.21 too (with an
offset).

Chris


--- a/drivers/char/n_tty.c 2003-06-19 21:51:27.000000000 -0400
+++ b/drivers/char/n_tty.c 2003-06-22 12:30:32.000000000 -0400
@@ -325,7 +325,7 @@
{
if (tty->erasing) {
put_char('/', tty);
- tty->column += 2;
+ tty->column++;
tty->erasing = 0;
}
}