ref: 46db46f7859ea12b8b5306bca34836417b89c4fa
parent: 0491a616b567c7115ef931a9c0197a19286044ec
author: Ori Bernstein <[email protected]>
date: Tue Feb 11 23:07:28 EST 2020
zero out new directory entries before reading from them.
--- a/save.c
+++ b/save.c
@@ -232,6 +232,7 @@
*nent += 1;
*ent = erealloc(*ent, *nent * sizeof(Dirent));
d = *ent + (*nent - 1);
+ memset(d, 0, sizeof(*d));
d->name = estrdup(name);
return d;
}