diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-10 17:53:41 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-11 12:07:06 +0200 |
commit | bf66c69bd898b05444dc423284ea030fba4e1a6f (patch) | |
tree | 4192c9cc090db8e8366fb8874e9a08772c6071cd /ringlogger | |
parent | version: bump (diff) | |
download | wireguard-windows-bf66c69bd898b05444dc423284ea030fba4e1a6f.tar.xz wireguard-windows-bf66c69bd898b05444dc423284ea030fba4e1a6f.zip |
global: format
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ringlogger')
-rw-r--r-- | ringlogger/ringlogger.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ringlogger/ringlogger.go b/ringlogger/ringlogger.go index 2d7c0c8f..443e1848 100644 --- a/ringlogger/ringlogger.go +++ b/ringlogger/ringlogger.go @@ -136,7 +136,7 @@ func (rl *Ringlogger) Write(p []byte) (n int, err error) { textLen := 3 + len(p) + len(rl.tag) if textLen > maxLogLineLength-1 { p = p[:maxLogLineLength-1-3-len(rl.tag)] - textLen = maxLogLineLength-1 + textLen = maxLogLineLength - 1 } line.line[textLen] = 0 line.line[0] = 0 // Null out the beginning and only let it extend after the other writes have completed |