summaryrefslogtreecommitdiff
path: root/cvs-fast-export/0005-xcalloc-argument-cleanup.patch
diff options
context:
space:
mode:
authorJohn Vogel <jvogel@stygian.me>2024-12-14 13:54:01 -0500
committerJohn Vogel <jvogel@stygian.me>2024-12-14 13:54:01 -0500
commitc6f27c7035b185bac7256a329a620b8f9ea72227 (patch)
treeec136442232ed8052f15af8baa4699ce38e6cad4 /cvs-fast-export/0005-xcalloc-argument-cleanup.patch
parent05e1d5340bd967a2e898341ffa02cabe1b39e098 (diff)
downloadforked-aports-c6f27c7035b185bac7256a329a620b8f9ea72227.tar.gz
local/cvs-fast-export: new aport
Diffstat (limited to 'cvs-fast-export/0005-xcalloc-argument-cleanup.patch')
-rw-r--r--cvs-fast-export/0005-xcalloc-argument-cleanup.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/cvs-fast-export/0005-xcalloc-argument-cleanup.patch b/cvs-fast-export/0005-xcalloc-argument-cleanup.patch
new file mode 100644
index 0000000..30bd15e
--- /dev/null
+++ b/cvs-fast-export/0005-xcalloc-argument-cleanup.patch
@@ -0,0 +1,28 @@
+From b575cfb478df8b6b6bb81b149178fd66401788b1 Mon Sep 17 00:00:00 2001
+From: John Vogel <jvogel@stygian.me>
+Date: Sat, 14 Dec 2024 03:19:13 -0500
+Subject: [PATCH] xcalloc argument cleanup.
+
+---
+ export.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/export.c b/export.c
+index 24c6161..5ab1ad7 100644
+--- a/export.c
++++ b/export.c
+@@ -798,9 +798,9 @@ void export_commits(forest_t *forest, export_options_t *opts,
+
+ export_stats.export_total_commits = export_ncommit(rl);
+ /* the +1 is because mark indices are 1-origin, slot 0 always empty */
+- markmap = (serial_t *)xcalloc(sizeof(serial_t),
+- forest->total_revisions +
++ markmap = (serial_t *)xcalloc(forest->total_revisions +
+ export_stats.export_total_commits + 1,
++ sizeof(serial_t),
+ "markmap allocation");
+
+ progress_begin("Generating snapshots...", forest->filecount);
+--
+2.47.1
+