aboutsummaryrefslogtreecommitdiff
path: root/hotline/files.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-18 15:34:50 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-18 15:34:50 -0700
commita55350daaf83498b7a237c027ad0dd2377f06fee (patch)
treeb9f8c43a7b0778a8c2be01e72ecba24484f97a46 /hotline/files.go
parent153e2eac3b51a6a426556752fa2c532cfe53f026 (diff)
Adopt more fixed size array types for struct fields
Diffstat (limited to 'hotline/files.go')
-rw-r--r--hotline/files.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/files.go b/hotline/files.go
index 6753cce..f2fc171 100644
--- a/hotline/files.go
+++ b/hotline/files.go
@@ -118,8 +118,8 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro
}
copy(fnwi.FileSize[:], hlFile.totalSize())
- copy(fnwi.Type[:], hlFile.ffo.FlatFileInformationFork.TypeSignature)
- copy(fnwi.Creator[:], hlFile.ffo.FlatFileInformationFork.CreatorSignature)
+ copy(fnwi.Type[:], hlFile.ffo.FlatFileInformationFork.TypeSignature[:])
+ copy(fnwi.Creator[:], hlFile.ffo.FlatFileInformationFork.CreatorSignature[:])
}
strippedName := strings.ReplaceAll(file.Name(), ".incomplete", "")