mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Fix compilation on Windows
This commit is contained in:
parent
658d876ff7
commit
12195b186b
3 changed files with 6 additions and 5 deletions
|
@ -224,7 +224,7 @@ void QTracker::ReplyWithPeerList(QTcpSocket *socket, const TrackerAnnounceReques
|
|||
// bencode
|
||||
std::vector<char> buf;
|
||||
bencode(std::back_inserter(buf), reply_entry);
|
||||
QByteArray reply(buf.data(), buf.size());
|
||||
QByteArray reply(&buf[0], buf.size());
|
||||
qDebug("QTracker: reply with the following bencoded data:\n %s", reply.constData());
|
||||
// HTTP reply
|
||||
QHttpResponseHeader response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue