summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-03 21:11:07 +0400
committerAnton <anton@picapica>2019-03-03 21:11:07 +0400
commitead2d2019a69889598ca1938feb2f51436c4212b (patch)
treec413f6f4f271a86d921b7864645921f4118ffe15
parent087f2ae516f0b1c61ccc3d5998b66ab4e2c4fe87 (diff)
downloadpica-pica-ead2d2019a69889598ca1938feb2f51436c4212b.tar.gz
pica-pica-ead2d2019a69889598ca1938feb2f51436c4212b.zip
pica-client: bugfix, proper initialization of QByteArray with peer_id
-rw-r--r--pica-client/skynet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pica-client/skynet.cpp b/pica-client/skynet.cpp
index 913c7dc..c07d6a9 100644
--- a/pica-client/skynet.cpp
+++ b/pica-client/skynet.cpp
@@ -743,7 +743,7 @@ QList<QByteArray> SkyNet::filter_existing_chans(QList<QByteArray> peer_ids)
while(iptr)
{
if (peer_ids.contains(QByteArray((const char*)iptr->peer_id, PICA_ID_SIZE)))
- ret.removeOne((const char*)iptr->peer_id);
+ ret.removeOne(QByteArray((const char*)iptr->peer_id, PICA_ID_SIZE));
iptr = iptr->next;
}