From 7e4b98cfe27c2e9e1c27a2096bb08cb6a1579a74 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Sun, 21 May 2023 18:26:56 -0400 Subject: [PATCH] Fixed RVConnectionData specialProtocols slice not being copied correctly --- types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types.go b/types.go index dff50840..6c645210 100644 --- a/types.go +++ b/types.go @@ -237,7 +237,10 @@ func (rvConnectionData *RVConnectionData) Copy() StructureInterface { copied.parentType = rvConnectionData.parentType copied.stationURL = rvConnectionData.stationURL - copied.specialProtocols = rvConnectionData.specialProtocols + copied.specialProtocols = make([]byte, len(rvConnectionData.specialProtocols)) + + copy(copied.specialProtocols, rvConnectionData.specialProtocols) + copied.stationURLSpecialProtocols = rvConnectionData.stationURLSpecialProtocols copied.time = rvConnectionData.time