diff options
Diffstat (limited to 'lib/libc/stdio/fmemopen.c')
| -rw-r--r-- | lib/libc/stdio/fmemopen.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/fmemopen.c b/lib/libc/stdio/fmemopen.c index ebd3596be775..bcf187d20029 100644 --- a/lib/libc/stdio/fmemopen.c +++ b/lib/libc/stdio/fmemopen.c @@ -149,6 +149,9 @@ fmemopen(void * __restrict buf, size_t size, const char * __restrict mode)  		return (NULL);  	} +	if (mode[0] == 'a') +		f->_flags |= __SAPP; +  	/*  	 * Turn off buffering, so a write past the end of the buffer  	 * correctly returns a short object count.  | 
