diff options
author | Thomas White <taw@physics.org> | 2016-04-21 13:09:05 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-04-21 13:09:05 +0200 |
commit | cb340affca2c452ca75e6e261175841cc33c7f77 (patch) | |
tree | 5ee428dbb6ff8a4662893296722cd37bbff176c2 /libcrystfel/src/hdf5-file.c | |
parent | 7d9499328361495146c5cea5a01dabe793e3d19d (diff) |
Use correct dataspace when reading HDF5 strings
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 29962aca..16fa0e75 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -2174,7 +2174,7 @@ char *hdfile_get_string_value(struct hdfile *f, const char *name, sh = H5Screate(H5S_SCALAR); - r = H5Dread(dh, type, sh, sh, H5P_DEFAULT, tmp); + r = H5Dread(dh, type, sh, H5S_ALL, H5P_DEFAULT, tmp); H5Sclose(sh); if ( r < 0 ) { free(tmp); |