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>
This commit is contained in:
Rafał Miłecki 2017-11-16 10:15:57 +01:00
parent ab8f20c18d
commit 70837168ef

View File

@ -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) {