diff --git a/kpasswd/kpasswd-generator.c b/kpasswd/kpasswd-generator.c index d0d908d66..deb6d8e81 100644 --- a/kpasswd/kpasswd-generator.c +++ b/kpasswd/kpasswd-generator.c @@ -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); }