From cb340affca2c452ca75e6e261175841cc33c7f77 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 21 Apr 2016 13:09:05 +0200 Subject: Use correct dataspace when reading HDF5 strings --- libcrystfel/src/hdf5-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/hdf5-file.c') 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); -- cgit v1.2.3