[Libreoffice-commits] .: basic/source
Noel Power
noelp at kemper.freedesktop.org
Mon Feb 14 06:00:01 PST 2011
basic/source/runtime/dllmgr-x64.cxx | 2 +-
basic/source/runtime/dllmgr-x86.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit db2c7179427e113d6decc3be5dc8a2f3cac3da17
Author: Noel Power <noel.power at novell.com>
Date: Mon Feb 14 13:57:06 2011 +0000
ported fix from DEV300m98 ( fixes i#115716 & fdo#33964 )
diff --git a/basic/source/runtime/dllmgr-x64.cxx b/basic/source/runtime/dllmgr-x64.cxx
index aa3ce5e..87be058 100644
--- a/basic/source/runtime/dllmgr-x64.cxx
+++ b/basic/source/runtime/dllmgr-x64.cxx
@@ -196,7 +196,7 @@ SbError marshalString(
return e;
}
std::vector< char > * blob = data.newBlob();
- blob->insert(blob->begin(), str.getStr(), str.getStr() + str.getLength());
+ blob->insert(blob->begin(), str.getStr(), str.getStr() + str.getLength() + 1);
*buffer = address(*blob);
data.unmarshalStrings.push_back(StringData(variable, *buffer, special));
return ERRCODE_NONE;
diff --git a/basic/source/runtime/dllmgr-x86.cxx b/basic/source/runtime/dllmgr-x86.cxx
index 09aee07..64419c9 100644
--- a/basic/source/runtime/dllmgr-x86.cxx
+++ b/basic/source/runtime/dllmgr-x86.cxx
@@ -203,7 +203,7 @@ SbError marshalString(
return e;
}
std::vector< char > * blob = data.newBlob();
- blob->insert(blob->begin(), str.getStr(), str.getStr() + str.getLength());
+ blob->insert(blob->begin(), str.getStr(), str.getStr() + str.getLength() + 1 );
*buffer = address(*blob);
data.unmarshalStrings.push_back(StringData(variable, *buffer, special));
return ERRCODE_NONE;
More information about the Libreoffice-commits
mailing list