Fix incorrect index use. nerr was being used for warning buffer check.
Merge pull request #830 from carsonmcdonald/warncheckfix

Fix incorrect index use. nerr was being used for warning buffer check.