b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/quota.c |
2 | +++ b/quota.c | ||||
3 | @@ -385,7 +385,7 @@ int main(int argc, char **argv) | ||||
4 | break; | ||||
5 | case 259: | ||||
6 | fscount++; | ||||
7 | - fsnames = reallocarray(fsnames, fscount, sizeof(char *)); | ||||
8 | + fsnames = realloc(fsnames, fscount * sizeof(char *)); | ||||
9 | if (!fsnames) | ||||
10 | die(1, _("Not enough memory for filesystem names")); | ||||
11 | fsnames[fscount - 1] = optarg; |