shithub: barrera

Download patch

ref: 2ee329ad6c911022fe4f2ea972c3642eb000c1bc
parent: 05fe1c3b2b5c3d1f8467ed0c39a02eb916512221
author: cinap_lenrek <[email protected]>
date: Sat Jan 7 12:27:48 EST 2023

barrera: bump buffer size to 4MB (for large clipboards)

--- a/barrera.c
+++ b/barrera.c
@@ -292,7 +292,7 @@
 {
 	int n = m->e - m->p;
 
-	if(len < 0 || len > 1024*1024)
+	if(len < 0 || len > 4*1024*1024)
 		sysfatal("bad message size: %d", len);
 	if(len > n){
 		memmove(m->b, m->p, n);