Hi, > > + case Z_BUF_ERROR: > > + out_len <<= 1; > > + if (out_len > (1 << 20)) { > > > > 1Mb isn't that much, is it? Well, since it handles only text for now it's > probably enough. Would it make sense to make this a #define for clarity ?
Yep. While talking about sizes: How does vdagent handles large clipboard chunks? There is ... #define VD_AGENT_MAX_DATA_SIZE 2048 ... but I suspect clipboard content isn't limited to that ... thanks, Gerd