aboutsummaryrefslogtreecommitdiff
path: root/telnet.go
diff options
context:
space:
mode:
Diffstat (limited to 'telnet.go')
-rw-r--r--telnet.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/telnet.go b/telnet.go
index c98e25a..015f022 100644
--- a/telnet.go
+++ b/telnet.go
@@ -64,7 +64,7 @@ func handleTelnet(conn net.Conn) {
readString := func(delim byte) (string, error) {
s, err := bufio.NewReader(conn).ReadString(delim)
- i := int(math.Max(float64(len(s)-2), 1))
+ i := int(math.Max(float64(len(s)-1), 1))
s = s[:i]
return s, err
}