Return to stringlist.c CVS log | Up to [local] / src / usr.bin / ftp |
version 1.7, 2006/04/25 05:45:20 | version 1.8, 2007/09/02 15:19:32 | ||
---|---|---|---|
|
|
||
sl->sl_cur = 0; | sl->sl_cur = 0; | ||
sl->sl_max = _SL_CHUNKSIZE; | sl->sl_max = _SL_CHUNKSIZE; | ||
sl->sl_str = malloc(sl->sl_max * sizeof(char *)); | sl->sl_str = calloc(sl->sl_max, sizeof(char *)); | ||
if (sl->sl_str == NULL) | if (sl->sl_str == NULL) | ||
err(1, "stringlist"); | err(1, "stringlist"); | ||
return sl; | return sl; |