mirror of https://github.com/containers/podman.git
Merge pull request #3783 from eriksjolund/fix_read_count
Adjust read count so that a newline can be added afterwards
This commit is contained in:
commit
7bbaa36a13
|
|
@ -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