diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2014-10-01 01:58:09 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2014-10-01 01:58:09 (GMT) |
commit | f1e70ac474a88f68acb6620a96bef738ec5dcd3c (patch) | |
tree | 513bbf503b193b5de488afebb789597736afff3c /hl/src/H5DS.c | |
parent | f2535031952d9c848538043829d43108575cdce3 (diff) | |
download | hdf5-f1e70ac474a88f68acb6620a96bef738ec5dcd3c.zip hdf5-f1e70ac474a88f68acb6620a96bef738ec5dcd3c.tar.gz hdf5-f1e70ac474a88f68acb6620a96bef738ec5dcd3c.tar.bz2 |
[svn-r25643] merged change 23241 into the branch.
Diffstat (limited to 'hl/src/H5DS.c')
-rw-r--r-- | hl/src/H5DS.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c index 1f0f678..df69380 100644 --- a/hl/src/H5DS.c +++ b/hl/src/H5DS.c @@ -1880,7 +1880,7 @@ ssize_t H5DSget_scale_name(hid_t did, if (buf) HDfree(buf); - return (ssize_t)(nbytes - 1); + return (ssize_t) MAX(0,nbytes-1); /* error zone */ out: |