Commit 86abdc56 authored by Steven Murray's avatar Steven Murray
Browse files

Fixed signal 6 bug in DriveGeneric.cpp

parent 7a924217
......@@ -801,7 +801,7 @@ void drive::DriveGeneric::generateRAO(std::list<SCSI::Structures::RAO::blockLims
}
SCSI::Structures::RAO::generateRAOParams_t params;
int real_params_len = sizeof(params) - (udSize - 1) *
int real_params_len = sizeof(params) + (udSize - 1) *
sizeof(SCSI::Structures::RAO::udsDescriptor_t);
std::unique_ptr<unsigned char[]> dataBuff (new unsigned char[real_params_len]());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment