shithub: gopher

Download patch

ref: c522ddc438f738a6a6f7e53ef1b910fee7d5285e
parent: bbacd07cd2120f3247223fc68050a75610764d72
author: telephil9 <[email protected]>
date: Thu Apr 30 01:30:06 EDT 2020

Fix truncated text issue

	Text was being truncated due to use of char instead of int in rendertext()

--- a/gopher.c
+++ b/gopher.c
@@ -139,8 +139,8 @@
 rendertext(Link *l, Biobuf *bp)
 {
 	Gmenu *m;
-	char c, buf[255];
-	int n, i;
+	char buf[255];
+	int c, n, i;
 
 	m = malloc(sizeof *m);
 	if(m==nil)