scsi_cd: Use the size of a data buffer and not its pointer size

This commit is contained in:
Lioncash
2014-09-26 20:37:14 +02:00
committed by François Revol
parent 0ae5889578
commit ef36e92c05
@@ -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;