copy data buffer

This commit is contained in:
Joseph Lawson
2014-03-28 23:41:02 -04:00
parent 02fe5a976f
commit 29deb996bd
+1 -1
View File
@@ -49,7 +49,7 @@ func (o *TCPOutput) worker() {
func (o *TCPOutput) Write(data []byte) (n int, err error) {
new_buf := make([]byte, len(data) + 2)
append(data, []byte("¶")...)
data = append(data,[]byte("¶")...)
copy(new_buf, data)
o.buf <- new_buf