diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-12 14:16:58 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-12 14:16:58 (GMT) |
commit | 8d422da811b82fe6c21147de9a71ed5a19d6d739 (patch) | |
tree | f0e3d762bd3ad275e154d11f54be47ee1ff84710 /examples | |
parent | 9b09201ce18f8d9455f3a09cf1d820e4acc3f9d6 (diff) | |
download | hdf5-8d422da811b82fe6c21147de9a71ed5a19d6d739.zip hdf5-8d422da811b82fe6c21147de9a71ed5a19d6d739.tar.gz hdf5-8d422da811b82fe6c21147de9a71ed5a19d6d739.tar.bz2 |
[svn-r9526] Purpose:
Bug fix, sorta.
Description:
Revert change to H5Pget_data_transform() which changed len of buffer
returned to be inconsistent with H5Iget_name(), etc. We should discuss this
change and apply it to all the similar functions if we decide to change the
return value.
Platforms tested:
FreeBSD 4.10 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_dtransform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_dtransform.c b/examples/h5_dtransform.c index d013ecf..153778a 100644 --- a/examples/h5_dtransform.c +++ b/examples/h5_dtransform.c @@ -167,8 +167,8 @@ main (void) /************** PART 4 **************/ transform_size = H5Pget_data_transform(dxpl_id_f_to_c, NULL, 0); - transform = (char*) malloc(transform_size); - H5Pget_data_transform(dxpl_id_f_to_c, transform, transform_size); + transform = (char*) malloc(transform_size+1); + H5Pget_data_transform(dxpl_id_f_to_c, transform, transform_size+1); printf("\nTransform string (from dxpl_id_f_to_c) is: %s\n", transform); |