mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
REGRESSION: incorrect fill range for ensight writeString
- introduced by b76595df42, only affects recent develop
This commit is contained in:
@ -156,7 +156,7 @@ Foam::Ostream& Foam::ensightFile::writeString(const char* str, size_t len)
|
||||
// TBD: truncate at newline? (shouldn't really occur anyhow)
|
||||
|
||||
std::copy_n(str, len, buf);
|
||||
std::fill_n(buf + len, (len - 80), '\0'); // Pad trailing with nul
|
||||
std::fill_n(buf + len, (80 - len), '\0'); // Pad trailing with nul
|
||||
|
||||
if (format() == IOstreamOption::BINARY)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user