mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
quota: update to 4.06
This includes a backport of quota commit 02b222a3, which removes the use of reallocarray. The musl C library does not provide reallocarray. Signed-off-by: W. Michael Petullo <mike@flyn.org>
This commit is contained in:
committed by
Hannu Nyman
parent
9133e79ccb
commit
ba4839f3c7
@@ -0,0 +1,13 @@
|
||||
diff --git a/quota.c b/quota.c
|
||||
index a6ed61f..a60de12 100644
|
||||
--- 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;
|
||||
Reference in New Issue
Block a user