We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6165346 commit d09c690Copy full SHA for d09c690
src/sdl2/audio.rs
@@ -1024,7 +1024,7 @@ impl AudioCVT {
1024
panic!("Failed SDL_malloc needed for SDL_ConvertAudio");
1025
}
1026
// raw.buf is dst_size long, but we want to copy into only the first src.len bytes.
1027
- assert!(src.len() < dst_size);
+ assert!(src.len() <= dst_size);
1028
std::slice::from_raw_parts_mut(raw.buf, src.len()).copy_from_slice(src.as_ref());
1029
1030
let ret = sys::SDL_ConvertAudio(&mut raw);
0 commit comments