aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;