[source] otrx: bump buffer size in otrx_create_append_file
LEDE Commits
lede-commits at lists.infradead.org
Fri Nov 17 02:30:42 PST 2017
rmilecki pushed a commit to source.git, branch master:
https://git.lede-project.org/70837168efe43d54bed21c83d50fa72336d45d53
commit 70837168efe43d54bed21c83d50fa72336d45d53
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Thu Nov 16 10:15:57 2017 +0100
otrx: bump buffer size in otrx_create_append_file
Usually this function is called for appending some small files only
(like fs marks) but let's just make it more generic and capable of
handling bigger files easily. Increasing buffer to 1 KiB shouldn't hurt.
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
package/utils/otrx/src/otrx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/utils/otrx/src/otrx.c b/package/utils/otrx/src/otrx.c
index 3b7cf04..0d99cd3 100644
--- a/package/utils/otrx/src/otrx.c
+++ b/package/utils/otrx/src/otrx.c
@@ -232,7 +232,7 @@ static ssize_t otrx_create_append_file(FILE *trx, const char *in_path) {
FILE *in;
size_t bytes;
ssize_t length = 0;
- uint8_t buf[128];
+ uint8_t buf[1024];
in = fopen(in_path, "r");
if (!in) {
More information about the lede-commits
mailing list