mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 18:56:52 +02:00
fixed SF# 2791934
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user