Change getline to not count the null terminator

See issue 56704

Change-Id: I22f563bc5f46b9806a5b69a9e9feea5def6527bd
2 files changed