about summary refs log tree commit diff
path: root/sysdeps/unix/bsd/direntry.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/bsd/direntry.h')
-rw-r--r--sysdeps/unix/bsd/direntry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/bsd/direntry.h b/sysdeps/unix/bsd/direntry.h
index eb55d57af7..2f563ec306 100644
--- a/sysdeps/unix/bsd/direntry.h
+++ b/sysdeps/unix/bsd/direntry.h
@@ -22,7 +22,7 @@ struct dirent
     unsigned int d_fileno;	/* 32 bits.  */
     unsigned short int d_reclen; /* 16 bits.  */
     unsigned short int d_namlen; /* 16 bits.  */
-    char d_name[0];		/* Variable length.  */
+    char d_name[1];		/* Variable length.  */
   };
 
 #define _DIRENT_HAVE_D_RECLEN 1