mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 07:21:03 +08:00
12 lines
364 B
Diff
12 lines
364 B
Diff
--- a/quota.c
|
|
+++ b/quota.c
|
|
@@ -385,7 +385,7 @@ int main(int argc, char **argv)
|
|
break;
|
|
case 259:
|
|
fscount++;
|
|
- fsnames = reallocarray(fsnames, fscount, sizeof(char *));
|
|
+ fsnames = realloc(fsnames, fscount * sizeof(char *));
|
|
if (!fsnames)
|
|
die(1, _("Not enough memory for filesystem names"));
|
|
fsnames[fscount - 1] = optarg;
|