diff options
| author | Philipp Andreas <github@smurfy.de> | 2014-07-11 22:34:02 +0200 |
|---|---|---|
| committer | Philipp Andreas <github@smurfy.de> | 2014-07-11 22:34:02 +0200 |
| commit | 959e251f2336e21d3615b1525a38773fe58ab2e7 (patch) | |
| tree | 921eb0360b64093a2b410cc7f623859acea0344e | |
| parent | 8405d4e2318291b0337812e5476a9d1e44ec9152 (diff) | |
Fix for the \0 termination to trim the original string to max 239 bytes instead of 240.
| -rw-r--r-- | daemon/watchconnector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/watchconnector.cpp b/daemon/watchconnector.cpp index 955ba13..9d8676e 100644 --- a/daemon/watchconnector.cpp +++ b/daemon/watchconnector.cpp @@ -213,7 +213,7 @@ void WatchConnector::buildData(QByteArray &res, QStringList data) { for (QString d : data) { - QByteArray tmp = d.left(0xF0).toUtf8(); + QByteArray tmp = d.left(0xEF).toUtf8(); res.append((tmp.length() + 1) & 0xFF); res.append(tmp); res.append('\0'); |
