summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-02-14 18:04:59 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-02-14 18:04:59 (GMT)
commitf5c5eba7837f33a44e521ea1c9aca479f1dc1bba (patch)
treea90aa9e195cbc44bd743da8cb92de72364ae4cb8 /test
parent2ee6908b6ab3e497b54cd2c739f78c222f1c27eb (diff)
parente562ffc03f8d21c664155c9972ed3147adbe8ad1 (diff)
downloadhdf5-f5c5eba7837f33a44e521ea1c9aca479f1dc1bba.zip
hdf5-f5c5eba7837f33a44e521ea1c9aca479f1dc1bba.tar.gz
hdf5-f5c5eba7837f33a44e521ea1c9aca479f1dc1bba.tar.bz2
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~vchoi/my_hdf5_fork into develop
Diffstat (limited to 'test')
-rw-r--r--test/ohdr.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/ohdr.c b/test/ohdr.c
index 43346a5..e886bf9 100644
--- a/test/ohdr.c
+++ b/test/ohdr.c
@@ -745,7 +745,7 @@ char *version_string(H5F_libver_t libver)
{
char *str = NULL;
- str = (char *) malloc(20 * sizeof(char));
+ str = (char *) HDmalloc(20);
if (str == NULL)
{
fprintf(stderr, "Allocation failed\n");
@@ -772,6 +772,9 @@ char *version_string(H5F_libver_t libver)
sprintf(str, "%ld", (long)libver);
break;
} /* end switch */
+
+ /* Return the formed version bound string */
+ return(str);
} /* end of version_string */
@@ -780,12 +783,16 @@ char *version_string(H5F_libver_t libver)
*
* Purpose: Exercise private object header behavior and routines
*
- * Return: Success: 0
- * Failure: 1
+ * Return: Success: 0
+ * Failure: 1
*
* Programmer: Robb Matzke
* Tuesday, November 24, 1998
*
+ * Modification:
+ * - Added loop of combinations of low/high library format bounds
+ * (BMR, Feb 2018)
+ *
*-------------------------------------------------------------------------
*/
int