Revert "s390/sclp_vt220: Convert newlines to CRLF instead of LFCR"
This reverts commit 253e51ed4b
.
This commit is contained in:
parent
89c3aaef2c
commit
f3da6367d0
1 changed files with 2 additions and 2 deletions
|
@ -325,7 +325,7 @@ sclp_vt220_add_msg(struct sclp_vt220_request *request,
|
|||
buffer = (void *) ((addr_t) sccb + sccb->header.length);
|
||||
|
||||
if (convertlf) {
|
||||
/* Perform Linefeed conversion (0x0a -> 0x0d 0x0a)*/
|
||||
/* Perform Linefeed conversion (0x0a -> 0x0a 0x0d)*/
|
||||
for (from=0, to=0;
|
||||
(from < count) && (to < sclp_vt220_space_left(request));
|
||||
from++) {
|
||||
|
@ -334,8 +334,8 @@ sclp_vt220_add_msg(struct sclp_vt220_request *request,
|
|||
/* Perform conversion */
|
||||
if (c == 0x0a) {
|
||||
if (to + 1 < sclp_vt220_space_left(request)) {
|
||||
((unsigned char *) buffer)[to++] = 0x0d;
|
||||
((unsigned char *) buffer)[to++] = c;
|
||||
((unsigned char *) buffer)[to++] = 0x0d;
|
||||
} else
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue