aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image-hdf5.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-06-22 09:28:24 +0200
committerThomas White <taw@physics.org>2021-06-22 09:28:24 +0200
commitc65ceb6556419a009968295361f7eae3fe6325fd (patch)
treec3a555269761a6d1316edba49d0c1e7b830c7957 /libcrystfel/src/image-hdf5.c
parent4f580196731e1b1e407f620fe28473b11814bee5 (diff)
Add string terminator for fixed-length HDF5 strings from arrays
Diffstat (limited to 'libcrystfel/src/image-hdf5.c')
-rw-r--r--libcrystfel/src/image-hdf5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index 7ea24070..38ebf42b 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -1003,6 +1003,7 @@ int image_hdf5_read_header_to_cache(struct image *image, const char *name)
return 1;
} else {
+ val[size] = '\0';
chomp(val);
image_cache_header_str(image, name, val);
free(val);