Fix OMEMO /sendfile on non-glibc systems

This commit is contained in:
nlfx
2021-11-01 03:31:26 +01:00
parent cad934b9a0
commit c41749b124

View File

@@ -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.