mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 15:51:51 -04:00
Fix zero length DMA transfer attempted failures with the ata(4) driver. This does not seem to affect users of the ahci(4) driver. While here, convert bzero/bcopy to memset/memmove, respectively. PR: 277115 Reported by: Benjamin Jacobs <freebsd@dev.thsi.be>
11 lines
386 B
C++
11 lines
386 B
C++
--- trackdb/FormatMp3.cc.orig 2023-02-03 14:46:06 UTC
|
|
+++ trackdb/FormatMp3.cc
|
|
@@ -111,7 +111,7 @@ FormatSupport::Status FormatMp3::madInit()
|
|
|
|
// Initialize libao for WAV output;
|
|
ao_sample_format out_format;
|
|
- bzero(&out_format, sizeof(out_format));
|
|
+ memset(&out_format, 0, sizeof(out_format));
|
|
out_format.bits = 16;
|
|
out_format.rate = 44100;
|
|
out_format.channels = 2;
|