fix buffer overflow
Merge branch 'master' of github.com:SCOREC/core