mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +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
@ -1275,6 +1275,7 @@ es_func_fp_write (void *cookie, const void *buffer, size_t size)
|
|||||||
#else
|
#else
|
||||||
bytes_written = fwrite (buffer, 1, size, file_cookie->fp);
|
bytes_written = fwrite (buffer, 1, size, file_cookie->fp);
|
||||||
#endif
|
#endif
|
||||||
|
fflush (file_cookie->fp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
bytes_written = size; /* Successfully written to the bit bucket. */
|
bytes_written = size; /* Successfully written to the bit bucket. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user