Adjust read count so that a newline can be added afterwards
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
This commit is contained in:
parent
3bc861cb11
commit
39ce3626e0
|
@ -276,7 +276,7 @@ static void __attribute__((constructor)) init()
|
|||
return;
|
||||
}
|
||||
|
||||
r = TEMP_FAILURE_RETRY (read (fd, buf, sizeof (buf)));
|
||||
r = TEMP_FAILURE_RETRY (read (fd, buf, sizeof (buf) - 1));
|
||||
close (fd);
|
||||
if (r < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue