From 1a53a5a4bf069e28ed6cbf6bba2b3ed14d20eb86 Mon Sep 17 00:00:00 2001 From: vinayak hegde Date: Thu, 5 Nov 2009 06:31:51 +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(-) 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