Added buffer and length parameters to error callout.