Subversion Repositories HelenOS

Rev

Rev 3313 | Rev 3464 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3313 Rev 3328
Line 69... Line 69...
69
    if (*path != '/') {
69
    if (*path != '/') {
70
        if (!cwd_path) {
70
        if (!cwd_path) {
71
            futex_up(&cwd_futex);
71
            futex_up(&cwd_futex);
72
            return NULL;
72
            return NULL;
73
        }
73
        }
74
        ncwd_path_nc = malloc(len + cwd_len + 1);
74
        ncwd_path_nc = malloc(cwd_len + 1 + len + 1);
75
        if (!ncwd_path_nc) {
75
        if (!ncwd_path_nc) {
76
            futex_up(&cwd_futex);
76
            futex_up(&cwd_futex);
77
            return NULL;
77
            return NULL;
78
        }
78
        }
79
        strcpy(ncwd_path_nc, cwd_path);
79
        strcpy(ncwd_path_nc, cwd_path);