Changes in uspace/lib/c/generic/dirent.c [bebd154:391996b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/dirent.c
rbebd154 r391996b 39 39 #include <errno.h> 40 40 #include <assert.h> 41 #include <string.h>42 41 43 42 struct __dirstream { … … 93 92 ssize_t len = 0; 94 93 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); 97 96 if (rc != EOK) { 98 97 errno = rc; 99 98 return NULL; 100 99 } 101 102 assert(strnlen(dirp->res.d_name, sizeof(dirp->res.d_name)) < sizeof(dirp->res.d_name));103 100 104 101 dirp->pos += len;
Note:
See TracChangeset
for help on using the changeset viewer.