Skip to content

Commit

Permalink
scsi_cd: Use the size of a data buffer and not its pointer size
Browse files Browse the repository at this point in the history
  • Loading branch information
lioncash authored and mmuman committed Sep 26, 2014
1 parent 0ae5889 commit ef36e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add-ons/kernel/drivers/disk/scsi/scsi_cd/scsi_cd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ef36e92

Please sign in to comment.