Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/dirent.c

    rbebd154 r391996b  
    3939#include <errno.h>
    4040#include <assert.h>
    41 #include <string.h>
    4241
    4342struct __dirstream {
     
    9392        ssize_t len = 0;
    9493
    95         rc = vfs_read_short(dirp->fd, dirp->pos, dirp->res.d_name,
    96             sizeof(dirp->res.d_name), &len);
     94        rc = vfs_read_short(dirp->fd, dirp->pos, &dirp->res.d_name[0],
     95            NAME_MAX + 1, &len);
    9796        if (rc != EOK) {
    9897                errno = rc;
    9998                return NULL;
    10099        }
    101 
    102         assert(strnlen(dirp->res.d_name, sizeof(dirp->res.d_name)) < sizeof(dirp->res.d_name));
    103100
    104101        dirp->pos += len;
Note: See TracChangeset for help on using the changeset viewer.