diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-02-26 21:39:32 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-02-26 21:39:32 +0000 |
| commit | ef18a7a8412761934bcfa18b04a1fb8d5092b874 (patch) | |
| tree | 1a318fde8e8c9754078aca14434ed4e7252c1578 /lib/libc | |
| parent | 08b38b1ff7c8366fa280fdbddbb2686de3303bbb (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/readdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/readdir.c b/lib/libc/gen/readdir.c index bb0d89741b17..68d0ddd66385 100644 --- a/lib/libc/gen/readdir.c +++ b/lib/libc/gen/readdir.c @@ -113,11 +113,11 @@ readdir_r(dirp, entry, result) if (__isthreaded) { _pthread_mutex_lock((pthread_mutex_t *)&dirp->dd_lock); if ((dp = _readdir_unlocked(dirp)) != NULL) - memcpy(entry, dp, sizeof *entry); + memcpy(entry, dp, _GENERIC_DIRSIZ(dp)); _pthread_mutex_unlock((pthread_mutex_t *)&dirp->dd_lock); } else if ((dp = _readdir_unlocked(dirp)) != NULL) - memcpy(entry, dp, sizeof *entry); + memcpy(entry, dp, _GENERIC_DIRSIZ(dp)); if (errno != 0) { if (dp == NULL) |
