Skip to content

Commit

Permalink
off by one found by Ed Maste (emaste@github)
Browse files Browse the repository at this point in the history
  • Loading branch information
bstansell committed Mar 17, 2019
1 parent 6526fcd commit 5ab4cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ ExecCmd(void)
closefrom(i);
#else
i = GetMaxFiles();
for ( /* i above */ ; --i > 3;) {
for ( /* i above */ ; --i > 2;) {
if (i != pout[0] && i != pin[1])
close(i);
}
Expand Down

0 comments on commit 5ab4cad

Please sign in to comment.