shithub: drawterm-fdroid

Download patch

ref: 31aac06d204f233a9452de880a1911d3dd1984bb
parent: f473ac462b3a4464f9ec315c48cee6426dfd5c77
author: Erik Quanstrom <quanstro@quanstro.net>
date: Tue Dec 28 15:51:02 EST 2010

expand iounit to handle large images in /dev/draw

--- a/exportfs/exportfs.c
+++ b/exportfs/exportfs.c
@@ -58,7 +58,7 @@
 	if(messagesize == 0){
 		messagesize = iounit(netfd);
 		if(messagesize == 0)
-			messagesize = 8192+IOHDRSZ;
+			messagesize = 8*8192+IOHDRSZ;
 	}
 
 	Workq = emallocz(sizeof(Fsrpc)*Nr_workbufs);
--- a/exportfs/exportsrv.c
+++ b/exportfs/exportsrv.c
@@ -16,7 +16,7 @@
 
 int iounit(int x)
 {
-	return 8192+IOHDRSZ;
+	return 8*8192+IOHDRSZ;
 }
 
 void*