summary refs log tree commit diff
path: root/sysdeps/generic/glob.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-14 19:01:03 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-14 19:01:03 +0000
commit3126bc1e2de74f729bf080503269706383e51658 (patch)
tree53fd8a4809c7b5b741525f3d8a0ca08536b71338 /sysdeps/generic/glob.c
parent25bbbb54b867d0fa252a2dcb3a764690ce83dcd4 (diff)
downloadglibc-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/generic/glob.c')
-rw-r--r--sysdeps/generic/glob.c2
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)