mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
[CRT]
* Update alloc_buffer(). CORE-8080 svn path=/trunk/; revision=63291
This commit is contained in:
parent
41b9a3a556
commit
e5361e27bd
|
@ -533,8 +533,12 @@ int CDECL _isatty(int fd)
|
|||
}
|
||||
|
||||
/* INTERNAL: Allocate stdio file buffer */
|
||||
/*static*/ void alloc_buffer(FILE* file)
|
||||
/*static*/ BOOL alloc_buffer(FILE* file)
|
||||
{
|
||||
if((file->_file==STDOUT_FILENO || file->_file==STDERR_FILENO)
|
||||
&& _isatty(file->_file))
|
||||
return FALSE;
|
||||
|
||||
file->_base = calloc(BUFSIZ,1);
|
||||
if(file->_base) {
|
||||
file->_bufsiz = BUFSIZ;
|
||||
|
@ -546,6 +550,7 @@ int CDECL _isatty(int fd)
|
|||
}
|
||||
file->_ptr = file->_base;
|
||||
file->_cnt = 0;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* INTERNAL: Convert integer to base32 string (0-9a-v), 0 becomes "" */
|
||||
|
|
Loading…
Reference in a new issue