diff options
Diffstat (limited to 'net-misc/knutclient/files/knutclient-0.9.diff')
-rw-r--r-- | net-misc/knutclient/files/knutclient-0.9.diff | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/knutclient/files/knutclient-0.9.diff b/net-misc/knutclient/files/knutclient-0.9.diff new file mode 100644 index 000000000000..6522e5e19b3d --- /dev/null +++ b/net-misc/knutclient/files/knutclient-0.9.diff @@ -0,0 +1,11 @@ +--- src/knutnet.cpp.orig 2006-08-29 18:29:57.000000000 -0700 ++++ src/knutnet.cpp 2006-08-29 18:33:33.000000000 -0700 +@@ -892,7 +892,7 @@ + dataAvailable=commandSocket->bytesAvailable(); + if (recvBuffer.size() < (dataAvailable+1) ) recvBuffer.resize(dataAvailable+1); + if ((lengthInputData = commandSocket->readBlock(recvBuffer.data(),dataAvailable)) == -1) return RecvErr; +- recvBuffer[lengthInputData]='\0'; ++ recvBuffer[static_cast<int>(lengthInputData)]='\0'; + rBuffer.append(recvBuffer.data()); // adds reading data to main input buffer + if (endString.isEmpty()) endRecv = false; + else { |