1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

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
No known key found for this signature in database
GPG Key ID: 882DDE7030737E98

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.