file: fix fd_insert

This commit is contained in:
Matheus
2025-02-08 21:15:52 -03:00
parent ee197319b8
commit cc1e0e37b1
+1 -1
View File
@@ -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;
} }