]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/flattened_file_object.go
Update README.md
[rbdr/mobius] / hotline / flattened_file_object.go
index 15ce94d8e4a27306ebaa2a8c23b725ee67acddae..fbc319bcd9a0cdcc76c0711f249179abcf5005a2 100644 (file)
@@ -102,8 +102,10 @@ func (ffif *FlatFileInformationFork) Size() [4]byte {
 }
 
 func (ffo *flattenedFileObject) TransferSize(offset int64) []byte {
+       ffoCopy := *ffo
+
        // get length of the flattenedFileObject, including the info fork
-       b, _ := io.ReadAll(ffo)
+       b, _ := io.ReadAll(&ffoCopy)
        payloadSize := len(b)
 
        // length of data fork