mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Don't write null character to text file on disc
This commit is contained in:
parent
1376e1be82
commit
bc99a064b1
@ -239,7 +239,7 @@ void CIOStream::WriteString(const string& svInput)
|
||||
return;
|
||||
|
||||
const char* szText = svInput.c_str();
|
||||
size_t nSize = svInput.size() + 1; // '+1' for the null terminator.
|
||||
size_t nSize = svInput.size();
|
||||
|
||||
m_Stream.write(szText, nSize);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user