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:
David du Colombier
2026-03-16 21:17:28 +00:00
committed by Dan Cross
parent ae4fdf4268
commit 0d87d4b75e
5 changed files with 48 additions and 39 deletions

View File

@@ -547,10 +547,6 @@ extern void drawsetdebug(int);
/*
* Snarf buffer
*/
enum
{
SnarfSize = 64*1024
};
char *getsnarf(void);
void putsnarf(char*);