shithub: riscv

Download patch

ref: 8c6c2b7216b6039188e76d26f9a62c4cb8ee4fca
parent: cb28d3f58a80e61f950616043e833e324528d18d
author: cinap_lenrek <[email protected]>
date: Wed Aug 16 07:41:16 EDT 2023

ar: use IOUNIT for streaming in files

--- a/sys/src/cmd/ar.c
+++ b/sys/src/cmd/ar.c
@@ -1087,7 +1087,7 @@
 {
 	Armember *bp;
 	int i;
-	char buf[8192];
+	char buf[IOUNIT];
 
 	if (ap->paged) {		/* copy from disk */
 		seek(ap->fd, 0, 0);