Add set_dirent_name() without name length parameter
This commit is contained in:
parent
7915349914
commit
bf20808710
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user