(add_list): fix alloc statement, From Alex Deiter

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18900 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-11-03 05:21:01 +00:00
parent 7a23f47ef3
commit 38270cde9d

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(str[0]));
(*list)[*listlen] = ecalloc(len, sizeof(**list));
for (i = 0; i < len; i++)
(*list)[*listlen][i] = str[i];
(*listlen)++;