gssmask: Fix wrong sizeof() expression

This commit is contained in:
Nicolas Williams
2023-01-04 16:23:07 -06:00
parent d2bc2a4ce5
commit cc631eb63f

View File

@@ -55,7 +55,7 @@ add_list(char ****list, size_t *listlen, char **str, size_t len)
size_t i;
*list = erealloc(*list, sizeof(**list) * (*listlen + 1));
(*list)[*listlen] = ecalloc(len, sizeof(**list));
(*list)[*listlen] = ecalloc(len, sizeof(***list));
for (i = 0; i < len; i++)
(*list)[*listlen][i] = str[i];
(*listlen)++;