1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Merge pull request #1611 from nlfx/fix-omemo-sendfile

Fix OMEMO /sendfile on non-glibc systems
This commit is contained in:
Michael Vetter 2021-11-01 12:11:49 +01:00 committed by GitHub
commit 7f5f334cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.