Skip to content
Snippets Groups Projects
Commit a8b7153f authored by Richard Berger's avatar Richard Berger
Browse files

Fixes issue #975

parent c3fe26a6
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,7 @@ void PythonImpl::invoke_function(int ifunc, char *result)
} else if (otype == DOUBLE) {
sprintf(result,"%.15g",PyFloat_AsDouble(pValue));
} else if (otype == STRING) {
char *pystr = PY_STRING_AS_STRING(pValue);
const char *pystr = PY_STRING_AS_STRING(pValue);
if (pfuncs[ifunc].longstr)
strncpy(pfuncs[ifunc].longstr,pystr,pfuncs[ifunc].length_longstr);
else strncpy(result,pystr,VALUELENGTH-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment