mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Make sure to call fflush if estream_t is backed with stdio
* common/estream.c (es_func_fp_write): Call fflush after fwrite.
This commit is contained in:
parent
ff6115227a
commit
e498180d56
1 changed files with 1 additions and 0 deletions
|
@ -1275,6 +1275,7 @@ es_func_fp_write (void *cookie, const void *buffer, size_t size)
|
|||
#else
|
||||
bytes_written = fwrite (buffer, 1, size, file_cookie->fp);
|
||||
#endif
|
||||
fflush (file_cookie->fp);
|
||||
}
|
||||
else
|
||||
bytes_written = size; /* Successfully written to the bit bucket. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue