Fix terminal data being interpreted as format string.
This caused invalid % sequences to be replaced with %!X(MISSING) in the terminal.
This commit is contained in:
parent
366c920c7c
commit
c8cae01560
|
@ -352,7 +352,7 @@ func (c *Client) readLoop(done chan bool, wg *sync.WaitGroup) {
|
||||||
logrus.Warnf("Invalid base64 content: %q", msg.Data[1:])
|
logrus.Warnf("Invalid base64 content: %q", msg.Data[1:])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
fmt.Fprintf(c.Output, string(buf))
|
c.Output.Write(buf)
|
||||||
case '1': // pong
|
case '1': // pong
|
||||||
case '2': // new title
|
case '2': // new title
|
||||||
newTitle := string(msg.Data[1:])
|
newTitle := string(msg.Data[1:])
|
||||||
|
|
Loading…
Reference in New Issue