kpasswd-generator: fix sizeof()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user