From 3126bc1e2de74f729bf080503269706383e51658 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 14 Feb 2001 19:01:03 +0000 Subject: Update. 2001-02-14 Ulrich Drepper * sysdeps/generic/glob.c (CONVERT_DIRENT_DIRENT64): Fix copying of name. * posix/Makefile (tests): Add tst-gnuglob. * posix/tst-gnuglob.c: New file. --- sysdeps/generic/glob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/generic') 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) -- cgit v1.2.3