2 parents d4fe28e + e5825ae commit ccd2f1fCopy full SHA for ccd2f1f
1 file changed
captbackend/UsbBackend/UsbStreambuf.cpp
@@ -9,7 +9,7 @@
9
using int_type = UsbStreambuf::int_type;
10
11
UsbStreambuf::UsbStreambuf(UsbPrinter& printer, std::size_t buffSize, unsigned timeoutMs)
12
- : printer(printer), rbuff(buffSize), wbuff(buffSize), timeoutMs(timeoutMs) {
+ : printer(printer), rbuff(1024), wbuff(buffSize), timeoutMs(timeoutMs) {
13
char_type* wstart = this->wbuff.data();
14
char_type* wend = wstart + this->wbuff.size() - 1;
15
this->setp(wstart, wend);
0 commit comments