aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-22 14:20:45 +0100
committerThomas White <taw@physics.org>2010-02-22 14:20:45 +0100
commit5afecd5881dc9eddb4809582212431d511aa5005 (patch)
treea3ad8b1ba85f3c1b2b833b061b2a7710756947f3
parentf86c9795c72d0a75692f010c0f3ef37f1c899eca (diff)
Avoid muppetry
-rw-r--r--src/geometry-lcls.tmp2
1 files changed, 1 insertions, 1 deletions
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;