|
From: | Farhan Ali |
Subject: | Re: [Qemu-devel] [PATCH] s390-ccw: print carriage return with new lines |
Date: | Fri, 20 Oct 2017 09:48:22 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 10/20/2017 07:02 AM, Christian Borntraeger wrote:
--- a/pc-bios/s390-ccw/sclp.c +++ b/pc-bios/s390-ccw/sclp.c @@ -83,7 +83,7 @@ long write(int fd, const void *str, size_t len) return -EIO; } - for (p = str; *p; ++p) { + for (p = str; len ; ++p, len--) { if (data_len > SCCB_DATA_LEN - 1) { return -EFBIG; }
The write function returns len, wouldn't this change make write return 0?
[Prev in Thread] | Current Thread | [Next in Thread] |