diff options
author | vinayak hegde <vinayak@gluster.com> | 2009-11-05 02:53:03 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-11-05 00:42:01 -0800 |
commit | e151ab3ed4718606767146f18b416f8900552fbc (patch) | |
tree | 855288f15da660fa34d01de53922e6495999e6cb /libglusterfs | |
parent | 47da643a0e9d8786489fe3173de318732556b6f0 (diff) |
libglusterfs/src/gf-dirent.c: In gf_dirent_nb structure d_name should be char array of size 1.
Signed-off-by: Vinayak Hegde <vinayak@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 360 (All fop fails when stat-prefetch is loaded on afr.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=360
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/gf-dirent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/gf-dirent.c b/libglusterfs/src/gf-dirent.c index cd31464ff..35a81bb8a 100644 --- a/libglusterfs/src/gf-dirent.c +++ b/libglusterfs/src/gf-dirent.c @@ -39,7 +39,7 @@ struct gf_dirent_nb { uint32_t d_len; uint32_t d_type; struct gf_stat d_stat; - char d_name[0]; + char d_name[1]; } __attribute__((packed)); |