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:
parent
cad934b9a0
commit
c41749b124
@ -4859,7 +4859,7 @@ _add_omemo_stream(int* fd, FILE** fh, char** err)
|
|||||||
*err = "Unable to create temporary file for encrypted transfer.";
|
*err = "Unable to create temporary file for encrypted transfer.";
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
FILE* tmpfh = fdopen(tmpfd, "wb");
|
FILE* tmpfh = fdopen(tmpfd, "w+b");
|
||||||
|
|
||||||
// The temporary ciphertext file should be removed after it has
|
// The temporary ciphertext file should be removed after it has
|
||||||
// been closed.
|
// been closed.
|
||||||
|
Loading…
Reference in New Issue
Block a user