Lines Matching refs:filearr
359 - char **filearr = NULL, *mfn;
360 + char **filearr = NULL;
416 mlen = maxfiles * sizeof(*filearr);
417 if ((filearr = CAST(char **,
418 - realloc(filearr, mlen))) == NULL) {
419 + erealloc(filearr, mlen))) == NULL) {
428 - filearr[files++] = mfn;
429 + filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen);
433 qsort(filearr, files, sizeof(*filearr), cmpstrp);
435 load_1(ms, action, filearr[i], &errs, mset);
436 - free(filearr[i]);
437 + efree(filearr[i]);
439 - free(filearr);
440 + efree(filearr);