mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01: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
@ -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…
x
Reference in New Issue
Block a user