diff options
author | Thomas White <taw@physics.org> | 2021-06-22 09:28:24 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-06-22 09:28:24 +0200 |
commit | c65ceb6556419a009968295361f7eae3fe6325fd (patch) | |
tree | c3a555269761a6d1316edba49d0c1e7b830c7957 /libcrystfel/src | |
parent | 4f580196731e1b1e407f620fe28473b11814bee5 (diff) |
Add string terminator for fixed-length HDF5 strings from arrays
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 1 |
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); |