latest changes from main repository; added eclipse cdt project files

This commit is contained in:
Guenter Obiltschnig
2007-04-28 12:05:15 +00:00
parent e46a2d8ed7
commit cf20ff1bd7
11 changed files with 47 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
//
// HTTPChunkedStream.cpp
//
// $Id: //poco/Main/Net/src/HTTPChunkedStream.cpp#13 $
// $Id: //poco/Main/Net/src/HTTPChunkedStream.cpp#14 $
//
// Library: Net
// Package: HTTP
@@ -115,10 +115,10 @@ int HTTPChunkedStreamBuf::writeToDevice(const char* buffer, std::streamsize leng
{
_chunkBuffer = NumberFormatter::formatHex(length);
_chunkBuffer.append("\r\n", 2);
_chunkBuffer.append(buffer, length);
_chunkBuffer.append(buffer, static_cast<std::string::size_type>(length));
_chunkBuffer.append("\r\n", 2);
_session.write(_chunkBuffer.data(), static_cast<std::streamsize>(_chunkBuffer.size()));
return length;
return static_cast<int>(length);
}