Changeset 42fa698 in mainline


Ignore:
Timestamp:
2009-11-09T22:45:33Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.