Commit 82345017 authored by Tim Waugh's avatar Tim Waugh Committed by Linus Torvalds

[PATCH] 2.5.3-pre6: console

I finally found the reason that printer console sometimes acted up
(duh):

	* drivers/char/lp.c: Fix printer console.
parent 50e4706d
......@@ -648,7 +648,7 @@ static void lp_console_write (struct console *co, const char *s,
do {
/* Write the data, converting LF->CRLF as we go. */
ssize_t canwrite = count;
char *lf = strchr (s, '\n');
char *lf = memchr (s, '\n', count);
if (lf)
canwrite = lf - s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment