From e151ab3ed4718606767146f18b416f8900552fbc Mon Sep 17 00:00:00 2001 From: vinayak hegde Date: Thu, 5 Nov 2009 02:53:03 +0000 Subject: libglusterfs/src/gf-dirent.c: In gf_dirent_nb structure d_name should be char array of size 1. Signed-off-by: Vinayak Hegde Signed-off-by: Anand V. Avati 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 --- libglusterfs/src/gf-dirent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/gf-dirent.c') 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)); -- cgit