Add set_dirent_name() without name length parameter

This commit is contained in:
Ingo Weinhold
2011-11-25 06:19:31 +01:00
parent 9590b31b31
commit 3b97d999e7
2 changed files with 8 additions and 1 deletions
@@ -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)
{
@@ -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;