Merge pull request #9 from apache/fix-bug

fix bug in ecp.c