fixed SF# 2791934

This commit is contained in:
Guenter Obiltschnig 2009-06-17 12:24:31 +00:00
parent 9dcc22722d
commit 09323fe120
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
//
// BufferedBidirectionalStreamBuf.h
//
// $Id: //poco/svn/Foundation/include/Poco/BufferedBidirectionalStreamBuf.h#2 $
// $Id: //poco/Main/Foundation/include/Poco/BufferedBidirectionalStreamBuf.h#7 $
//
// Library: Foundation
// Package: Streams
@ -115,7 +115,7 @@ public:
int putback = int(this->gptr() - this->eback());
if (putback > 4) putback = 4;
char_traits::copy(_pReadBuffer + (4 - putback), this->gptr() - putback, putback);
char_traits::move(_pReadBuffer + (4 - putback), this->gptr() - putback, putback);
int n = readFromDevice(_pReadBuffer + 4, _bufsize - 4);
if (n <= 0) return char_traits::eof();

View File

@ -1,7 +1,7 @@
//
// BufferedStreamBuf.h
//
// $Id: //poco/svn/Foundation/include/Poco/BufferedStreamBuf.h#2 $
// $Id: //poco/Main/Foundation/include/Poco/BufferedStreamBuf.h#6 $
//
// Library: Foundation
// Package: Streams
@ -114,7 +114,7 @@ public:
int putback = int(this->gptr() - this->eback());
if (putback > 4) putback = 4;
char_traits::copy(_pBuffer + (4 - putback), this->gptr() - putback, putback);
char_traits::move(_pBuffer + (4 - putback), this->gptr() - putback, putback);
int n = readFromDevice(_pBuffer + 4, _bufsize - 4);
if (n <= 0) return char_traits::eof();