summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-11-12 14:16:58 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-11-12 14:16:58 (GMT)
commit8d422da811b82fe6c21147de9a71ed5a19d6d739 (patch)
treef0e3d762bd3ad275e154d11f54be47ee1ff84710 /src
parent9b09201ce18f8d9455f3a09cf1d820e4acc3f9d6 (diff)
downloadhdf5-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 'src')
-rw-r--r--src/H5Pdxpl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5Pdxpl.c b/src/H5Pdxpl.c
index 37db704..db1a45b 100644
--- a/src/H5Pdxpl.c
+++ b/src/H5Pdxpl.c
@@ -133,8 +133,6 @@ ssize_t H5Pget_data_transform(hid_t plist_id, char* expression /*out*/, size_t s
if(!pexp)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "Failed to retrieve transform expression");
-
-
len = HDstrlen(pexp);
if(expression)
{
@@ -143,7 +141,7 @@ ssize_t H5Pget_data_transform(hid_t plist_id, char* expression /*out*/, size_t s
expression[size-1]='\0';
}
- ret_value = (ssize_t)len + 1;
+ ret_value = (ssize_t)len;
done:
if(ret_value<0) {