mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
fixed SF# 2791934
This commit is contained in:
parent
9dcc22722d
commit
09323fe120
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// BufferedBidirectionalStreamBuf.h
|
// BufferedBidirectionalStreamBuf.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/include/Poco/BufferedBidirectionalStreamBuf.h#2 $
|
// $Id: //poco/Main/Foundation/include/Poco/BufferedBidirectionalStreamBuf.h#7 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Streams
|
// Package: Streams
|
||||||
@ -115,7 +115,7 @@ public:
|
|||||||
int putback = int(this->gptr() - this->eback());
|
int putback = int(this->gptr() - this->eback());
|
||||||
if (putback > 4) putback = 4;
|
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);
|
int n = readFromDevice(_pReadBuffer + 4, _bufsize - 4);
|
||||||
if (n <= 0) return char_traits::eof();
|
if (n <= 0) return char_traits::eof();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// BufferedStreamBuf.h
|
// BufferedStreamBuf.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/include/Poco/BufferedStreamBuf.h#2 $
|
// $Id: //poco/Main/Foundation/include/Poco/BufferedStreamBuf.h#6 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Streams
|
// Package: Streams
|
||||||
@ -114,7 +114,7 @@ public:
|
|||||||
int putback = int(this->gptr() - this->eback());
|
int putback = int(this->gptr() - this->eback());
|
||||||
if (putback > 4) putback = 4;
|
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);
|
int n = readFromDevice(_pBuffer + 4, _bufsize - 4);
|
||||||
if (n <= 0) return char_traits::eof();
|
if (n <= 0) return char_traits::eof();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user