shithub: barrera

Download patch

ref: 4d6ccebdb4abd39898e175237fbbda7d69079140
parent: e1c4261fb2cb095a18d79c3a4374c7eff74bf892
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 1 23:17:20 EST 2023

set correct snarfbuf size in readsnarf()

--- a/barrera.c
+++ b/barrera.c
@@ -510,6 +510,7 @@
 		sizemsg(&snarfbuf, 0);
 		return 0;
 	}
+	sizemsg(&snarfbuf, 4+4+4 + l);
 	packmsg(&snarfbuf, "%4i%4i%4i", 1, Ftext, l);
 	snarfbuf.p -= 4+4+4;
 	return 1;