summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/CPlusPlusUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r--cpp/src/Slice/CPlusPlusUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp
index 7837cce0260..ad75534d73e 100644
--- a/cpp/src/Slice/CPlusPlusUtil.cpp
+++ b/cpp/src/Slice/CPlusPlusUtil.cpp
@@ -860,7 +860,7 @@ Slice::writeMarshalUnmarshalCode(Output& out, const TypePtr& type, const string&
string tmpParam = "__";
if(fixedParam.find("(*") == 0)
{
- tmpParam += fixedParam.substr(2, fixedParam.length() - 2);
+ tmpParam += fixedParam.substr(2, fixedParam.length() - 3);
}
else if(fixedParam.find("[i]") != string::npos)
{