shithub: barrera

Download patch

ref: e43185a2078c2130413926765ba4da3d520655d5
parent: 2ee329ad6c911022fe4f2ea972c3642eb000c1bc
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 25 08:00:32 EDT 2025

fix clipboard bug (thanks rodri)

there was a typo where we intended to skip over clipboard
data chunks of non-text format, but where advancing the
read pointer of the network message buffer instead of
the snarfbuf buffer.

--- a/barrera.c
+++ b/barrera.c
@@ -650,7 +650,7 @@
 					if(snarfbuf.e - snarfbuf.p < l)
 						break;
 					if(cfmt != Ftext || l == 0){
-						m.p += l;
+						snarfbuf.p += l;
 						continue;
 					}
 					if(snarffd >= 0)
--