mirror of
https://github.com/jwetzell/artnet-go.git
synced 2026-08-16 04:23:23 +00:00
fix size check on timecode unmarshal
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ func (atc *ArtTimeCode) GetID() [8]uint8 {
|
||||
}
|
||||
|
||||
func (atc *ArtTimeCode) UnmarshalBinary(data []byte) error {
|
||||
if len(data) < 14 {
|
||||
if len(data) < 19 {
|
||||
return errors.New("ArtTimeCode packet must be at least 14 bytes long")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user