kpasswd-generator: fix sizeof()

This commit is contained in:
Nicolas Williams
2016-02-29 19:08:59 -06:00
parent b7e54c6c45
commit 33e3f7fb94

View File

@@ -51,7 +51,7 @@ read_words (const char *filename, char ***ret_w)
buf[strcspn(buf, "\r\n")] = '\0';
if (n >= alloc) {
alloc += 16;
w = erealloc (w, alloc * sizeof(char **));
w = erealloc (w, alloc * sizeof(char *));
}
w[n++] = estrdup (buf);
}