changeset 1485 | 51c11e77408a |
parent 1360 | d3e285281c26 |
child 2405 | 3b8607ac32c6 |
--- a/QTfrontend/proto.cpp Sat Nov 08 11:54:46 2008 +0000 +++ b/QTfrontend/proto.cpp Sun Nov 09 07:51:53 2008 +0000 @@ -26,7 +26,7 @@ QByteArray & HWProto::addStringToBuffer(QByteArray & buf, const QString & string) { QByteArray strmsg = string.toUtf8(); - strmsg.left(250); + strmsg = strmsg.left(250); quint8 sz = strmsg.size(); buf.append(QByteArray((char *)&sz, 1)); buf.append(strmsg);