1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-07 23:27:48 +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:
Daiki Ueno 2013-04-02 15:45:58 +09:00 committed by Werner Koch
parent ff6115227a
commit e498180d56

View File

@ -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. */