cp: use bigger buffers
authorAlan Cox <alan@linux.intel.com>
Sun, 15 Jul 2018 00:16:13 +0000 (01:16 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 15 Jul 2018 00:16:13 +0000 (01:16 +0100)
Applications/util/cp.c

index f1b1581..366520c 100644 (file)
@@ -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 <stdio.h>
@@ -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];