aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-02-20 13:24:28 +0100
committerThomas White <taw@physics.org>2015-02-20 13:24:28 +0100
commitd75aa0efaf30562d42999b78b040e024bc9bc80c (patch)
treebd09fa659311b913987e9edaa601b346898e1212 /libcrystfel/src/detector.c
parentdd42c1d7da82cd8fa18b3df0e589ef83064e30f5 (diff)
copy_geom(): Fix obvious bug
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r--libcrystfel/src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index dbc73591..4f58df9c 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1728,7 +1728,7 @@ struct detector *copy_geom(const struct detector *in)
if ( p->data != NULL ) {
/* Make a copy of the data fields unique to this
* copy of the structure. */
- p->clen_from = strdup(p->clen_from);
+ p->data = strdup(p->data);
}
if ( p->dim_structure != NULL ) {