fix pread param error.