mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user