aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornlfx <69880003+nlfx@users.noreply.github.com>2021-11-01 03:31:26 +0100
committernlfx <69880003+nlfx@users.noreply.github.com>2021-11-01 03:59:44 +0100
commitc41749b124c526c4acd375fca55e8a99b6c32579 (patch)
treed61590e4881f26e40b172f47d9069a6de6548b2c /src
parentcad934b9a069bb2c3c417d4efc64dc25fb9814b7 (diff)
downloadprofani-tty-c41749b124c526c4acd375fca55e8a99b6c32579.tar.gz
Fix OMEMO /sendfile on non-glibc systems
Diffstat (limited to 'src')
-rw-r--r--src/command/cmd_funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index c61b5c44..9256a933 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -4859,7 +4859,7 @@ _add_omemo_stream(int* fd, FILE** fh, char** err)
*err = "Unable to create temporary file for encrypted transfer.";
return NULL;
}
- FILE* tmpfh = fdopen(tmpfd, "wb");
+ FILE* tmpfh = fdopen(tmpfd, "w+b");
// The temporary ciphertext file should be removed after it has
// been closed.