From c54ec7be2d7c2556f93f1db7d3845fe59f23e543 Mon Sep 17 00:00:00 2001 From: dingusdev <52434309+dingusdev@users.noreply.github.com> Date: Sat, 30 Mar 2024 11:19:32 -0700 Subject: [PATCH] Use memset instead of bzero --- devices/common/scsi/scsicdrom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/common/scsi/scsicdrom.cpp b/devices/common/scsi/scsicdrom.cpp index f41935b..f531985 100644 --- a/devices/common/scsi/scsicdrom.cpp +++ b/devices/common/scsi/scsicdrom.cpp @@ -228,7 +228,7 @@ void ScsiCdrom::inquiry() { LOG_F(ERROR, "Inappropriate Allocation Length: %d", alloc_len); } else { - bzero(&this->data_buf[36], alloc_len - 36); + memset(&this->data_buf[36], 0, alloc_len - 36); } this->bytes_out = alloc_len;