mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
file: fix fd_insert
This commit is contained in:
@@ -204,7 +204,7 @@ int fd_insert(file_t *file, int *fdp, int flags) {
|
||||
|
||||
if (fd == -1) {
|
||||
fd = proc->fdcount;
|
||||
err = growtable(proc->fdcount);
|
||||
err = growtable(proc->fdcount + 1);
|
||||
if (err)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user