This commit is contained in:
gabime
2014-03-17 02:01:40 +02:00
parent 0209765b8f
commit d8ddfe5c24
3 changed files with 3 additions and 3 deletions

View File

@@ -36,11 +36,11 @@ protected:
virtual int sync() override
{
return 0;
}
virtual std::streamsize xsputn(const char_type* s, std::streamsize count) override
{
auto ssize = _str.size();
auto cap_left = _str.capacity() - ssize;
if(cap_left < static_cast<std::size_t>(count))