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:
Ingo Weinhold
2007-09-12 14:18:01 +00:00
parent f0e6ea2160
commit 8df44a6cda
+1 -1
View File
@@ -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)