From 60e00ddd6e77a43e95a161168f1727ebcbe0f610 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Sun, 28 Dec 2014 22:56:07 +0000 Subject: Merge patch by TheReign * Fixes most of the bugs in DCC send support for files larger than 4GiB. I doubt I found them all, but it catches all of the ones I needed for myself. * NOTE: I confess I probably didn't choose the best solution for this, but it seems to do what is needed. * NOTE: The better solution may be to add 64-bit number support to sendFmtData() git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6415 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/dcc/libkvidcc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/dcc/libkvidcc.cpp') diff --git a/src/modules/dcc/libkvidcc.cpp b/src/modules/dcc/libkvidcc.cpp index fe17027ef..74aded7c5 100644 --- a/src/modules/dcc/libkvidcc.cpp +++ b/src/modules/dcc/libkvidcc.cpp @@ -970,12 +970,13 @@ static bool dcc_kvs_cmd_get(KviKvsModuleCommandCall * c) c->window()->console()->connection()->encodeText(szFileName).data(), 0x01); } else { - c->window()->console()->connection()->sendFmtData("PRIVMSG %s :%cDCC %s %s %u%c", + c->window()->console()->connection()->sendFmtData("PRIVMSG %s :%cDCC %s %s %s%c", c->window()->console()->connection()->encodeText(szTarget).data(), 0x01, c->window()->console()->connection()->encodeText(szDCC.ptr()).data(), c->window()->console()->connection()->encodeText(szFileName).data(), - uSize,0x01); + c->window()->console()->connection()->encodeText(QString::number(uSize)).data(), + 0x01); } return true; -- cgit v1.3.1-10-gc9f91