From 36972a358fb091d4be716fae33237e3711f926ec Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 29 Sep 2011 17:29:27 +0200 Subject: Fix stack corruption --- src/partialator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/partialator.c') diff --git a/src/partialator.c b/src/partialator.c index 06e23861..6b4719eb 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -492,7 +492,8 @@ int main(int argc, char *argv[]) /* Make initial estimates */ STATUS("Performing initial scaling.\n"); - full = scale_intensities(images, n_usable_patterns, reference); + full = scale_intensities(images, n_usable_patterns, reference, + nthreads); sr = sr_titlepage(images, n_usable_patterns, "scaling-report.pdf", infile, cmdline); @@ -530,7 +531,7 @@ int main(int argc, char *argv[]) /* Re-estimate all the full intensities */ reflist_free(full); full = scale_intensities(images, n_usable_patterns, - reference); + reference, nthreads); sr_iteration(sr, i+1, images, n_usable_patterns, full); -- cgit v1.2.3