summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/genhdlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/genhdlist.c b/utils/genhdlist.c
index 51e306d1d..aeac58362 100644
--- a/utils/genhdlist.c
+++ b/utils/genhdlist.c
@@ -439,7 +439,7 @@ int main(int argc, const char ** argv) {
while ((fgets(b, sizeof(b) - 1, f))) {
if (numpkgs == nalloced) {
depOrder = realloc (depOrder, sizeof (char *) * (nalloced + 6));
- memset (depOrder + numpkgs, '\0', 6);
+ memset (depOrder + numpkgs, '\0', sizeof (char *) * 6);
nalloced += 5;
}