Corrected the length variable including length of timestampt string which doesn't include terminating null.
This commit is contained in:
VilhoRaatikka
2014-02-11 14:55:16 +02:00
parent ab6469f2ae
commit e57944ef44
2 changed files with 10 additions and 9 deletions

View File

@ -1672,7 +1672,7 @@ static bool file_write_footer(
if (header_buf3 == NULL) {
goto return_succp;
}
tslen = snprint_timestamp(header_buf3, tslen-1);
tslen = snprint_timestamp(header_buf3, tslen);
header_buf4 = "\n--------------------------------------------"
"---------------------------\n";