mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +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) {
|
if (fd == -1) {
|
||||||
fd = proc->fdcount;
|
fd = proc->fdcount;
|
||||||
err = growtable(proc->fdcount);
|
err = growtable(proc->fdcount + 1);
|
||||||
if (err)
|
if (err)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user