From 2c8fca94f1c18a8bea56387c7217c2182ea112c5 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 15 Jul 2018 01:16:13 +0100 Subject: [PATCH] cp: use bigger buffers --- Applications/util/cp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Applications/util/cp.c b/Applications/util/cp.c index f1b1581b..366520c6 100644 --- a/Applications/util/cp.c +++ b/Applications/util/cp.c @@ -4,6 +4,7 @@ * provided that this copyright notice remains intact. * * Stripped of stdio use Alan Cox 2015 + * Set up to use bigger buffers. */ #include @@ -84,7 +85,9 @@ isadir(char *name) * be set.) */ -#define BUF_SIZE 512 +/* We can't bump this past 16384 right now until we fix issue #291 */ +/* It's also a nice safe number because it'll fit our smallest platforms */ +#define BUF_SIZE 16384 static char buf[BUF_SIZE]; -- 2.34.1