Message ID | 59828e2191068753dd166a5341ccf4d43a8a0370.1443546001.git.silvio.fricke@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/cmds-check.c b/cmds-check.c index 2923d05..2c32ff3 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -3021,7 +3021,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;
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com> --- cmds-check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)