xbps: fix build with gcc14
This commit is contained in:
13
srcpkgs/xbps/patches/fix-transposed-calloc.patch
Normal file
13
srcpkgs/xbps/patches/fix-transposed-calloc.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
|
||||
index 6591bb61..4408bf20 100644
|
||||
--- a/bin/xbps-fbulk/main.c
|
||||
+++ b/bin/xbps-fbulk/main.c
|
||||
@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
|
||||
static void
|
||||
addDepn(struct item *item, struct item *xitem)
|
||||
{
|
||||
- struct depn *depn = calloc(sizeof(*depn), 1);
|
||||
+ struct depn *depn = calloc(1, sizeof(*depn));
|
||||
char *logpath3;
|
||||
FILE *fp;
|
||||
|
||||
Reference in New Issue
Block a user