Flush the stream when doing a uio_close() after a uio_fwrite().
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2655 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -356,6 +356,7 @@ uio_fwrite(const void *buf, size_t size, size_t nmemb, uio_Stream *stream) {
|
||||
ssize_t bytesWritten;
|
||||
|
||||
uio_assertWriteSanity(stream);
|
||||
stream->operation = uio_StreamOperation_write;
|
||||
|
||||
// NB. If a file is opened in append mode, the file position indicator
|
||||
// is moved to the end of the file before writing.
|
||||
|
||||
Reference in New Issue
Block a user