diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/detector.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c index 752e493c..b9239a0d 100644 --- a/src/detector.c +++ b/src/detector.c @@ -702,6 +702,9 @@ struct detector *copy_geom(const struct detector *in) out->panels = malloc(out->n_panels * sizeof(struct panel)); memcpy(out->panels, in->panels, out->n_panels * sizeof(struct panel)); + out->bad = malloc(out->n_bad * sizeof(struct badregion)); + memcpy(out->bad, in->bad, out->n_bad * sizeof(struct badregion)); + for ( i=0; i<out->n_panels; i++ ) { struct panel *p; |