kadmin: read_words pass correct type to sizeof

(char *) not (char **).

Change-Id: I2c34fa5b0ea9f81b08451ed1b4a816684b7ab638
This commit is contained in:
Jeffrey Altman
2022-01-17 22:21:44 -05:00
parent 2cd3f7089e
commit 51575264d4

View File

@@ -58,7 +58,7 @@ read_words (const char *filename, char ***ret_w)
buf[strcspn(buf, "\r\n")] = '\0';
if (n >= alloc) {
alloc = max(alloc + 16, alloc * 2);
w = erealloc (w, alloc * sizeof(char **));
w = erealloc (w, alloc * sizeof(char *));
}
len = strlen(buf);
if (wptr + len + 1 >= wend) {