about summary refs log tree commit diff
path: root/sysdeps/unix/common/direntry.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/common/direntry.h')
-rw-r--r--sysdeps/unix/common/direntry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/common/direntry.h b/sysdeps/unix/common/direntry.h
index 5decd56db6..aa065474bf 100644
--- a/sysdeps/unix/common/direntry.h
+++ b/sysdeps/unix/common/direntry.h
@@ -22,7 +22,7 @@ struct dirent
     unsigned int d_fileno;
     int d_off;			/* Position in directory of following entry. */
     unsigned short int d_reclen;
-    char d_name[0];		/* Variable length.  */
+    char d_name[1];		/* Variable length.  */
   };
 
 #define _DIRENT_HAVE_D_RECLEN 1