scilab: fix std::string length issue
This commit is contained in:
parent
1875f841e5
commit
aba56486fe
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ SWIG_SciString_AsCharPtrAndSize(void *pvApiCtx, int iVar, char **pcValue, size_t
|
|||
}
|
||||
|
||||
if (piLength != NULL) {
|
||||
*piLength = strlen(*pcValue) + 1;
|
||||
*piLength = strlen(*pcValue);
|
||||
}
|
||||
|
||||
return SWIG_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue