fix wrong malloc size for ignore_error buffer