mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-27 08:39:49 +00:00
Use copy
instead of assignment
This commit is contained in:
parent
5aeb449a34
commit
11e535cd27
@ -83,7 +83,7 @@ func (reader *tcpReader) isProtocolIdentified() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (reader *tcpReader) rewind() {
|
func (reader *tcpReader) rewind() {
|
||||||
reader.data = reader.pastData
|
copy(reader.data, reader.pastData)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (reader *tcpReader) Read(p []byte) (int, error) {
|
func (reader *tcpReader) Read(p []byte) (int, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user