Add set_dirent_name() without name length parameter
This commit is contained in:
@@ -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
|
static inline void
|
||||||
get_real_time(timespec& time)
|
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
|
// fill in the entry name -- checks whether the entry fits into the
|
||||||
// buffer
|
// buffer
|
||||||
if (!set_dirent_name(buffer, bufferSize, name, strlen(name))) {
|
if (!set_dirent_name(buffer, bufferSize, name)) {
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
RETURN_ERROR(B_BUFFER_OVERFLOW);
|
RETURN_ERROR(B_BUFFER_OVERFLOW);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user