Subversion Repositories HelenOS

Rev

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

Rev 4256 Rev 4257
Line 532... Line 532...
532
    futex_down(&cwd_futex);
532
    futex_down(&cwd_futex);
533
    if (size < cwd_size + 1) {
533
    if (size < cwd_size + 1) {
534
        futex_up(&cwd_futex);
534
        futex_up(&cwd_futex);
535
        return NULL;
535
        return NULL;
536
    }
536
    }
537
    strcpy(buf, cwd_path);
537
    str_ncpy(buf, cwd_path, size);
538
    futex_up(&cwd_futex);
538
    futex_up(&cwd_futex);
539
    return buf;
539
    return buf;
540
}
540
}
541
 
541
 
542
/** @}
542
/** @}