devdraw, acme, snarfer: remove 64KB snarf buffer limit
The snarf code silently dropped text larger than SnarfSize (64KB), causing paste to produce nothing. Replace the static clip buffer with a dynamically allocated one, remove all the size checks, and read the actual X11 property size instead of capping at SnarfSize.
This commit is contained in:
committed by
Dan Cross
parent
ae4fdf4268
commit
0d87d4b75e
@@ -547,10 +547,6 @@ extern void drawsetdebug(int);
|
||||
/*
|
||||
* Snarf buffer
|
||||
*/
|
||||
enum
|
||||
{
|
||||
SnarfSize = 64*1024
|
||||
};
|
||||
char *getsnarf(void);
|
||||
void putsnarf(char*);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user