Merge pull request #34 from mickael9/patch-1

Fix terminal data being interpreted as format string.
This commit is contained in:
Manfred Touron 2015-12-30 07:17:40 +01:00
commit 02ca2750ff
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ func (c *Client) readLoop(done chan bool, wg *sync.WaitGroup) {
logrus.Warnf("Invalid base64 content: %q", msg.Data[1:])
break
}
fmt.Fprintf(c.Output, string(buf))
c.Output.Write(buf)
case '1': // pong
case '2': // new title
newTitle := string(msg.Data[1:])