From 5afecd5881dc9eddb4809582212431d511aa5005 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 22 Feb 2010 14:20:45 +0100 Subject: Avoid muppetry --- src/geometry-lcls.tmp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geometry-lcls.tmp b/src/geometry-lcls.tmp index da0b0c55..09c93dc2 100644 --- a/src/geometry-lcls.tmp +++ b/src/geometry-lcls.tmp @@ -1,6 +1,6 @@ /* Set up detector configuration */ image.det.n_panels = 2; -image.det.panels = malloc(2*sizeof(struct panel)); +image.det.panels = malloc(image.det.n_panels*sizeof(struct panel)); /* Upper panel */ image.det.panels[0].min_x = 0; -- cgit v1.2.3