diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-02-14 19:01:03 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-02-14 19:01:03 +0000 |
commit | 3126bc1e2de74f729bf080503269706383e51658 (patch) | |
tree | 53fd8a4809c7b5b741525f3d8a0ca08536b71338 /sysdeps | |
parent | 25bbbb54b867d0fa252a2dcb3a764690ce83dcd4 (diff) | |
download | glibc-3126bc1e2de74f729bf080503269706383e51658.tar.gz glibc-3126bc1e2de74f729bf080503269706383e51658.tar.xz glibc-3126bc1e2de74f729bf080503269706383e51658.zip |
Update.
2001-02-14 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/glob.c (CONVERT_DIRENT_DIRENT64): Fix copying of name. * posix/Makefile (tests): Add tst-gnuglob. * posix/tst-gnuglob.c: New file.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/glob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/glob.c b/sysdeps/generic/glob.c index 3357bb3d17..d03d961687 100644 --- a/sysdeps/generic/glob.c +++ b/sysdeps/generic/glob.c @@ -149,7 +149,7 @@ extern int errno; # endif # define CONVERT_DIRENT_DIRENT64(d64, d32) \ - memcpy ((d64)->d_name, (d32)->d_name, NAMLEN (d32)); \ + memcpy ((d64)->d_name, (d32)->d_name, NAMLEN (d32) + 1); \ CONVERT_D_NAMLEN (d64, d32) \ CONVERT_D_INO (d64, d32) \ CONVERT_D_TYPE (d64, d32) |