mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-15 21:20:58 +08:00
Fix wrong required size
This commit is contained in:
@@ -4,7 +4,7 @@ package io
|
||||
// InsufficientBufferError.
|
||||
func Copy(dst, src []byte) (n int, err error) {
|
||||
if len(dst) < len(src) {
|
||||
return 0, &InsufficientBufferError{len(dst)}
|
||||
return 0, &InsufficientBufferError{len(src)}
|
||||
}
|
||||
|
||||
return copy(dst, src), nil
|
||||
|
Reference in New Issue
Block a user