shithub: riscv

Download patch

ref: fcd5c498922230021966a389f09622656f7dd563
parent: 87de3d34335e20fdb2ad2c471f89173aa6610193
author: cinap_lenrek <[email protected]>
date: Wed Aug 16 11:12:23 EDT 2023

upas/marshal: use IOUNIT

--- a/sys/src/cmd/upas/marshal/marshal.c
+++ b/sys/src/cmd/upas/marshal/marshal.c
@@ -991,7 +991,7 @@
 tee(int in, int out1, int out2)
 {
 	int n;
-	char buf[8*1024];
+	char buf[IOUNIT];
 
 	while ((n = read(in, buf, sizeof buf)) > 0){
 		if(out1 != -1 && write(out1, buf, n) != n)
@@ -1640,7 +1640,7 @@
 void
 Bdrain(Biobuf *b)
 {
-	char buf[8192];
+	char buf[IOUNIT];
 
 	while(Bread(b, buf, sizeof buf) > 0)
 		;