Changeset 8af22d6 in mainline


Ignore:
Timestamp:
2008-08-16T10:53:56Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e55b015
Parents:
e2115311
Message:

Fix off-by-one bug in absolutize().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/vfs/vfs.c

    re2115311 r8af22d6  
    7272                        return NULL;
    7373                }
    74                 ncwd_path_nc = malloc(len + cwd_len + 1);
     74                ncwd_path_nc = malloc(cwd_len + 1 + len + 1);
    7575                if (!ncwd_path_nc) {
    7676                        futex_up(&cwd_futex);
Note: See TracChangeset for help on using the changeset viewer.