From 82e3af8fd369786b3ee473a431d4d25bef36d3db Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 29 Dec 2008 13:31:08 +0000 Subject: [PATCH] Fix memset bug where wrong buffer size was being passed (trac #29) This bug was reported by devy at free dot fr. It had already been fixed in the master branch. --- src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.c b/src/stats.c index ea0b629..c38017b 100644 --- a/src/stats.c +++ b/src/stats.c @@ -49,7 +49,7 @@ init_stats(void) if (stats == MAP_FAILED) return; - memset(stats, 0, sizeof(struct stat)); + memset(stats, 0, sizeof(struct stat_s)); } /*