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

@@ -1109,7 +1109,7 @@ rpc_getsnarf(void)
void
rpc_putsnarf(char *s)
{
if(s == nil || strlen(s) >= SnarfSize)
if(s == nil)
return;
dispatch_sync(dispatch_get_main_queue(), ^(void) {