diff --git a/lib/src/bindings/merge.dart b/lib/src/bindings/merge.dart index f278804..f1ea634 100644 --- a/lib/src/bindings/merge.dart +++ b/lib/src/bindings/merge.dart @@ -32,7 +32,7 @@ Pointer mergeBaseMany({ required List commits, }) { final out = calloc(); - final commitsC = calloc(commits.length * 20); + final commitsC = calloc(commits.length); for (var i = 0; i < commits.length; i++) { commitsC[i].id = commits[i].id; } @@ -62,7 +62,7 @@ Pointer mergeBaseOctopus({ required List commits, }) { final out = calloc(); - final commitsC = calloc(commits.length * 20); + final commitsC = calloc(commits.length); for (var i = 0; i < commits.length; i++) { commitsC[i].id = commits[i].id; }