From: Alan Cox Date: Sun, 15 Jul 2018 00:16:13 +0000 (+0100) Subject: cp: use bigger buffers X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2c8fca94f1c18a8bea56387c7217c2182ea112c5;p=FUZIX.git cp: use bigger buffers --- 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];