Skip to content

Commit

Permalink
Fixed Transform index out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
masa23 committed Dec 28, 2023
1 parent 6cc737f commit 39d29a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion milterutil/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ func (t *CrLfToLfTransformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc
if c == lf {
if t.prevCR {
nSrc++
dst[nDst-1] = lf
t.prevCR = false
continue
}
Expand Down

0 comments on commit 39d29a5

Please sign in to comment.