Copy change r22224: WriteAttrString() should write the terminating null.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22226 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -492,7 +492,7 @@ BNode::WriteAttrString(const char *name, const BString *data)
|
||||
{
|
||||
status_t error = (!name || !data) ? B_BAD_VALUE : B_OK;
|
||||
if (error == B_OK) {
|
||||
int32 len = data->Length();
|
||||
int32 len = data->Length() + 1;
|
||||
ssize_t sizeWritten = WriteAttr(name, B_STRING_TYPE, 0, data->String(),
|
||||
len);
|
||||
if (sizeWritten != len)
|
||||
|
||||
Reference in New Issue
Block a user