mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
process.c: Prevent data loss for process output streams
For a terminating process, it's output streams could be closed, before all data is read.
This commit is contained in:
@@ -15,7 +15,7 @@ RBuffer *rbuffer_new(size_t capacity)
|
||||
FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_RET
|
||||
{
|
||||
if (!capacity) {
|
||||
capacity = 0xffff;
|
||||
capacity = 0x10000;
|
||||
}
|
||||
|
||||
RBuffer *rv = xmalloc(sizeof(RBuffer) + capacity);
|
||||
|
Reference in New Issue
Block a user