diff options
author | Thomas White <taw@physics.org> | 2021-10-20 12:03:39 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-10-20 12:03:39 +0200 |
commit | b3ca8757af33d1d36c75e882275bb3f518e2235d (patch) | |
tree | 31cd483405d7720ca6dc66b666d94cf439c2b5e6 /libcrystfel/src | |
parent | e5043fb50d3dffee443a33e5a4df1c088038b4de (diff) |
image_hdf5_read_header_to_cache: Make space for terminator
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index df9e2c49..705670bb 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -1026,7 +1026,7 @@ int image_hdf5_read_header_to_cache(struct image *image, const char *name) size_t ssize; ssize = H5Tget_size(stype); - val = malloc(ssize); + val = malloc(ssize+1); if ( val == NULL ) { close_hdf5(fh); free(subst_name); |