Add set_dirent_name() without name length parameter

This commit is contained in:
Ingo Weinhold 2011-07-09 00:11:06 +02:00
parent 7915349914
commit bf20808710
2 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,13 @@ set_dirent_name(struct dirent* buffer, size_t bufferSize, const char* name,
}
static inline bool
set_dirent_name(struct dirent* buffer, size_t bufferSize, const char* name)
{
return set_dirent_name(buffer, bufferSize, name, strlen(name));
}
static inline void
get_real_time(timespec& time)
{

View File

@ -621,7 +621,7 @@ packagefs_read_dir(fs_volume* fsVolume, fs_vnode* fsNode, void* _cookie,
// fill in the entry name -- checks whether the entry fits into the
// buffer
if (!set_dirent_name(buffer, bufferSize, name, strlen(name))) {
if (!set_dirent_name(buffer, bufferSize, name)) {
if (count == 0)
RETURN_ERROR(B_BUFFER_OVERFLOW);
break;