Skip to content
Snippets Groups Projects
Unverified Commit d649a6fe authored by Steve Plimpton's avatar Steve Plimpton Committed by GitHub
Browse files

Merge pull request #979 from rbberger/small-python-fix

Fixes issue #975
parents c3fe26a6 a8b7153f
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