From: Silvio Fricke Date: Tue, 29 Sep 2015 17:10:46 +0000 (+0200) Subject: btrfs-progs: check: fix memset range X-Git-Tag: upstream/4.16.1~1998 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afe33bc29b0fb4e38cd1f18fbc48b537bf5eddc5;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: check: fix memset range Signed-off-by: Silvio Fricke Signed-off-by: David Sterba --- diff --git a/cmds-check.c b/cmds-check.c index fe3f782b..4225b211 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -2969,7 +2969,7 @@ static struct root_backref *get_root_backref(struct root_record *rec, } backref = malloc(sizeof(*backref) + namelen + 1); - memset(backref, 0, sizeof(*backref)); + memset(backref, 0, sizeof(*backref) + namelen + 1); backref->ref_root = ref_root; backref->dir = dir; backref->index = index;