master
Edzell 2022-04-21 14:04:23 +02:00
parent 3ad80e785a
commit 2ceb71f684
1 changed files with 1 additions and 1 deletions

View File

@ -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
}