scilab: fix std::string length issue

This commit is contained in:
Simon Marchetto 2014-10-23 11:08:34 +02:00
commit aba56486fe

View file

@ -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;