]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
string: Introduce arr_alloc().
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index c6c57845e0b7f682e2fbe6d697e09b2403f9b899..667d4cac10c69ca0f7e08ee9f20eeec787086d06 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -335,7 +335,7 @@ static int initialize_fec_client(struct fec_client *fc, struct vss_task *vsst)
        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);