(CONVERT_DIRENT_DIRENT64): Fix copying of name.
authordrepper <drepper>
Wed, 14 Feb 2001 18:58:33 +0000 (18:58 +0000)
committerdrepper <drepper>
Wed, 14 Feb 2001 18:58:33 +0000 (18:58 +0000)
sysdeps/generic/glob.c

index 3357bb3..d03d961 100644 (file)
@@ -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)