ret = fec_new(k, n, &fc->parms);
if (ret < 0)
return ret;
- fc->src_data = alloc(k * sizeof(char *));
+ fc->src_data = arr_alloc(k, sizeof(char *));
for (i = 0; i < k; i++)
fc->src_data[i] = alloc(fc->mps);
fc->enc_buf = alloc(fc->mps);
struct fec_client *vss_add_fec_client(struct sender_client *sc,
struct fec_client_parms *fcp)
{
- struct fec_client *fc = para_calloc(sizeof(*fc));
+ struct fec_client *fc = zalloc(sizeof(*fc));
fc->sc = sc;
fc->fcp = fcp;