Avoid incorrect length of logged commands.
commiteb47bb4f88f2ac1568a9d0a26e5447b771977abd
authorJohannes Sixt <j6t@kdbg.org>
Mon, 11 Mar 2013 20:10:02 +0000 (11 21:10 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Mon, 11 Mar 2013 20:10:02 +0000 (11 21:10 +0100)
tree7060b7de67d2b50452ca2fc0a262390ad9da2e4e
parent416b9f996234ec8044e1e4041fdbd1f3ddeb986a
Avoid incorrect length of logged commands.

The command that was just sent to the debugger is written to the log file.
The number of bytes to write was derived from the original Unicode string,
whereas the data was taken from the byte string (toLocal8Bit()). There is
no guarantee, though, that the length of the latter is the same as the
number of Unicode characters. Fix it by using the QIODevice::write()
overload that takes a QByteArray.
kdbg/dbgdriver.cpp