Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 42fa698 in mainline


Ignore:
Timestamp:
2009-11-09T22:45:33Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
50f9c3a, 93fbbd26
Parents:
bccec98
Message:

Fix off-by-one error in vfs_fd_alloc().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_file.c

    rbccec98 r42fa698  
    8989        unsigned int i;
    9090        if (desc)
    91                 i = MAX_OPEN_FILES;
     91                i = MAX_OPEN_FILES - 1;
    9292        else
    9393                i = 0;
Note: See TracChangeset for help on using the changeset viewer.