Change to way buffer over flow error reported