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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);