public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da7715b
)
cp: use bigger buffers
author
Alan Cox
<alan@linux.intel.com>
Sun, 15 Jul 2018 00:16:13 +0000
(
01:16
+0100)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 15 Jul 2018 00:16:13 +0000
(
01:16
+0100)
Applications/util/cp.c
patch
|
blob
|
history
diff --git
a/Applications/util/cp.c
b/Applications/util/cp.c
index
f1b1581
..
366520c
100644
(file)
--- 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 <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];