Fix compilation on Windows

This commit is contained in:
Christophe Dumez 2010-11-01 18:05:54 +00:00
parent 658d876ff7
commit 12195b186b
3 changed files with 6 additions and 5 deletions

View file

@ -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;