scsi_cd: Use the size of a data buffer and not its pointer size
This commit is contained in:
@@ -369,7 +369,7 @@ get_set_volume(cd_driver_info *info, scsi_volume *volume, bool set)
|
||||
if (buffer == NULL)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
memset(buffer, -1, sizeof(buffer));
|
||||
memset(buffer, -1, len);
|
||||
|
||||
cmd.allocation_length = len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user