From d088ffe14da46247052e34c5cfaced46f5079b24 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 29 Mar 2011 14:15:32 +0000 Subject: debug/io-stats: fix memory corruption. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 2619 (Memory corruption in io-stats) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2619 --- xlators/debug/io-stats/src/io-stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/debug') diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index b7c522fe5..5e0aef84f 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -2464,7 +2464,7 @@ init (xlator_t *this) for (i = 0; i list[i].iosstats = GF_CALLOC (1, - sizeof(conf->list[i].iosstats), + sizeof(*conf->list[i].iosstats), gf_io_stats_mt_ios_stat); if (!conf->list[i].iosstats) { -- cgit