Updated write from ZString to not pass by reference.

This commit is contained in:
Brad Arant 2024-07-11 14:02:28 -07:00
parent d5bdfe8ca3
commit 4945bbfc91
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ namespace coreutils {
return *this; return *this;
} }
MString &MString::write(ZString &value) { MString &MString::write(ZString value) {
int len = length; int len = length;
setSize(length + value.getLength()); setSize(length + value.getLength());
memcpy(data + len, value.getData(), value.getLength()); memcpy(data + len, value.getData(), value.getLength());

View File

@ -212,7 +212,7 @@ namespace coreutils {
/// ///
/// ///
MString &write(ZString &value); MString &write(ZString value);
/// ///
/// Read data from a socket and store in MString. /// Read data from a socket and store in MString.