mirror of
https://github.com/datarhei/core.git
synced 2025-10-16 04:50:44 +08:00
Fix writing string to prelude tail
This commit is contained in:
@@ -307,7 +307,7 @@ func (p *parser) Parse(line []byte) uint64 {
|
|||||||
if len(p.prelude.data) < p.prelude.headLines {
|
if len(p.prelude.data) < p.prelude.headLines {
|
||||||
p.prelude.data = append(p.prelude.data, stringLine)
|
p.prelude.data = append(p.prelude.data, stringLine)
|
||||||
} else {
|
} else {
|
||||||
p.prelude.tail.Value = line
|
p.prelude.tail.Value = stringLine
|
||||||
p.prelude.tail = p.prelude.tail.Next()
|
p.prelude.tail = p.prelude.tail.Next()
|
||||||
p.prelude.truncatedLines++
|
p.prelude.truncatedLines++
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user