--- 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(lengthInputData)]='\0'; rBuffer.append(recvBuffer.data()); // adds reading data to main input buffer if (endString.isEmpty()) endRecv = false; else {