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';
|
buf[strcspn(buf, "\r\n")] = '\0';
|
||||||
if (n >= alloc) {
|
if (n >= alloc) {
|
||||||
alloc += 16;
|
alloc += 16;
|
||||||
w = erealloc (w, alloc * sizeof(char **));
|
w = erealloc (w, alloc * sizeof(char *));
|
||||||
}
|
}
|
||||||
w[n++] = estrdup (buf);
|
w[n++] = estrdup (buf);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user