aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/otrx/src
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2017-11-16 10:15:57 +0100
committerRafał Miłecki <rafal@milecki.pl>2017-11-17 11:30:31 +0100
commit70837168efe43d54bed21c83d50fa72336d45d53 (patch)
tree8669be94d9fcab374303b37e6dfd4f7e885a577a /package/utils/otrx/src
parentab8f20c18dd34d61371d2ab30ad5e923d70aef7c (diff)
downloadupstream-70837168efe43d54bed21c83d50fa72336d45d53.tar.gz
upstream-70837168efe43d54bed21c83d50fa72336d45d53.tar.bz2
upstream-70837168efe43d54bed21c83d50fa72336d45d53.zip
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@milecki.pl>
Diffstat (limited to 'package/utils/otrx/src')
-rw-r--r--package/utils/otrx/src/otrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/utils/otrx/src/otrx.c b/package/utils/otrx/src/otrx.c
index 3b7cf04859..0d99cd39e3 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) {