Commit 27a5d791 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6d4007b2
...@@ -406,7 +406,6 @@ static error _parsePinReq(PinReq *pin, const rxPkt *pkt) { ...@@ -406,7 +406,6 @@ static error _parsePinReq(PinReq *pin, const rxPkt *pkt) {
// _readline reads next raw line sent from wcfs. // _readline reads next raw line sent from wcfs.
tuple<string, error> _WatchLink::_readline() { tuple<string, error> _WatchLink::_readline() {
_WatchLink& wlink = *this; _WatchLink& wlink = *this;
// XXX errctx ?
char buf[128]; char buf[128];
size_t nl_searchfrom = 0; size_t nl_searchfrom = 0;
...@@ -422,7 +421,7 @@ tuple<string, error> _WatchLink::_readline() { ...@@ -422,7 +421,7 @@ tuple<string, error> _WatchLink::_readline() {
// limit line length to avoid DoS // limit line length to avoid DoS
if (wlink._rxbuf.length() > 128) if (wlink._rxbuf.length() > 128)
return make_tuple("", fmt::errorf("line is too long")); return make_tuple("", fmt::errorf("input line is too long"));
int n; int n;
error err; error err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment